Received: from [140.186.70.92] (port=49643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcImn-0006MY-5r for qemu-devel@nongnu.org; Mon, 10 Jan 2011 09:31:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcImm-0008U2-5u for qemu-devel@nongnu.org; Mon, 10 Jan 2011 09:31:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcIml-0008Tp-Uy for qemu-devel@nongnu.org; Mon, 10 Jan 2011 09:31:52 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev properties for documentation References: Date: Mon, 10 Jan 2011 15:31:38 +0100 In-Reply-To: (Amit Shah's message of "Tue, 4 Jan 2011 17:52:20 +0530") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu list Amit Shah writes: [...] > diff --git a/hw/qdev.c b/hw/qdev.c > index 6fc9b02..168d0f6 100644 > --- a/hw/qdev.c > +++ b/hw/qdev.c > @@ -185,7 +185,8 @@ int qdev_device_help(QemuOpts *opts) > if (!prop->info->parse) { > continue; /* no way to set it, don't show */ > } > - error_printf("%s.%s=%s\n", info->name, prop->name, prop->info->name); > + error_printf("%s.%s=%s, %s\n", info->name, prop->name, > + prop->info->name, prop->desc ?: ""); > } > return 1; > } Output could be made prettier (align the help texts). Preferrably in a follow-up commit, because this one's seen enough respins already. [...]