From patchwork Mon Jul 16 13:54:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Hrdina X-Patchwork-Id: 171204 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5D46A2C00AB for ; Mon, 16 Jul 2012 23:55:15 +1000 (EST) Received: from localhost ([::1]:43016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqllZ-00007h-HO for incoming@patchwork.ozlabs.org; Mon, 16 Jul 2012 09:55:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqllH-0008Ie-9o for qemu-devel@nongnu.org; Mon, 16 Jul 2012 09:54:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sqll9-0001jt-Cr for qemu-devel@nongnu.org; Mon, 16 Jul 2012 09:54:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqll9-0001jm-4q for qemu-devel@nongnu.org; Mon, 16 Jul 2012 09:54:47 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6GDskbN021844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Jul 2012 09:54:46 -0400 Received: from miglaptop.brq.redhat.com.com (dhcp-1-191.brq.redhat.com [10.34.1.191]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6GDsguF013207; Mon, 16 Jul 2012 09:54:45 -0400 From: Pavel Hrdina To: qemu-devel@nongnu.org Date: Mon, 16 Jul 2012 15:54:40 +0200 Message-Id: <5d0f37fa917931f39f7758ae71bbb343bb309163.1342440332.git.minovotn@redhat.com> In-Reply-To: <3d1ec0fd89b439e704cc1f6d2e7b841a64cecb47.1342436496.git.minovotn@redhat.com> References: <3d1ec0fd89b439e704cc1f6d2e7b841a64cecb47.1342436496.git.minovotn@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Michal Novotny Subject: [Qemu-devel] [PATCH] qemu-options.hx: Improve -{read|write}config options description X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Michal Novotny This is the patch to improve description for -{read|write}config functions. Signed-off-by: Michal Novotny --- qemu-options.hx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index e15252e..97245a3 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2713,7 +2713,9 @@ DEF("readconfig", HAS_ARG, QEMU_OPTION_readconfig, STEXI @item -readconfig @var{file} @findex -readconfig -Read device configuration from @var{file}. +Read device configuration from @var{file}. This approach is useful when you want to spawn +QEMU process with many command line options but you don't want to exceed the command line +character limit. ETEXI DEF("writeconfig", HAS_ARG, QEMU_OPTION_writeconfig, "-writeconfig \n" @@ -2721,7 +2723,9 @@ DEF("writeconfig", HAS_ARG, QEMU_OPTION_writeconfig, STEXI @item -writeconfig @var{file} @findex -writeconfig -Write device configuration to @var{file}. +Write device configuration to @var{file}. The @var{file} can be either filename to save +command line and device configuration into file or dash @code{-}) character to print the +output to stdout. This can be later used as input file for @code{-readconfig} option. ETEXI DEF("nodefconfig", 0, QEMU_OPTION_nodefconfig, "-nodefconfig\n"