Received: from [140.186.70.92] (port=32989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPcXg-0004Po-4C for qemu-devel@nongnu.org; Mon, 06 Dec 2010 09:59:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPcXe-0001AA-QF for qemu-devel@nongnu.org; Mon, 06 Dec 2010 09:59:51 -0500 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:56864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPcXe-0001A5-Gr for qemu-devel@nongnu.org; Mon, 06 Dec 2010 09:59:50 -0500 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id oB6Exna6017815 for ; Mon, 6 Dec 2010 14:59:49 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oB6ExqUN3862774 for ; Mon, 6 Dec 2010 14:59:53 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oB6Exnx9027001 for ; Mon, 6 Dec 2010 07:59:49 -0700 Date: Mon, 6 Dec 2010 14:59:48 +0000 From: Stefan Hajnoczi Message-ID: <20101206145947.GE11112@stefan-thinkpad.transitives.com> References: <1291645540-9784-1-git-send-email-Jes.Sorensen@redhat.com> <1291645540-9784-6-git-send-email-Jes.Sorensen@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291645540-9784-6-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] Re: [PATCH 5/7] Consolidate printing of block driver options List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes.Sorensen@redhat.com Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Mon, Dec 06, 2010 at 03:25:38PM +0100, Jes.Sorensen@redhat.com wrote: > From: Jes Sorensen > > This consolidates the printing of block driver options in > print_block_option_help() which is called from both img_create() and > img_convert(). > > This allows for the "?" detection to be done just after the parsing of > options and the filename, instead of half way down the codepath of > these functions. > > Signed-off-by: Jes Sorensen > --- > qemu-img.c | 46 +++++++++++++++++++++++++++++++++++++--------- > 1 files changed, 37 insertions(+), 9 deletions(-) Reviewed-by: Stefan Hajnoczi