From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFApd-00068O-UQ for qemu-devel@nongnu.org; Tue, 03 Apr 2012 17:00:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFApY-0000Fq-7Q for qemu-devel@nongnu.org; Tue, 03 Apr 2012 17:00:01 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:50773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFApY-0000FH-16 for qemu-devel@nongnu.org; Tue, 03 Apr 2012 16:59:56 -0400 Received: by obbup19 with SMTP id up19so189235obb.4 for ; Tue, 03 Apr 2012 13:59:54 -0700 (PDT) Message-ID: <4F7B64C7.3070700@codemonkey.ws> Date: Tue, 03 Apr 2012 15:59:51 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1333451753-3550-1-git-send-email-pbonzini@redhat.com> <1333451753-3550-7-git-send-email-pbonzini@redhat.com> In-Reply-To: <1333451753-3550-7-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/25] qdev: fix -device foo,? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , aliguori@us.ibm.com, Jan Kiszka , qemu-devel@nongnu.org, afaerber@suse.de On 04/03/2012 06:15 AM, Paolo Bonzini wrote: > Since most property types do not have a parse property now, this was > broken. Fix it by looking at the setter instead. > > Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori > --- > hw/qdev-monitor.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c > index 4783366..0acfc82 100644 > --- a/hw/qdev-monitor.c > +++ b/hw/qdev-monitor.c > @@ -157,7 +157,7 @@ int qdev_device_help(QemuOpts *opts) > * for removal. This conditional should be removed along with > * it. > */ > - if (!prop->info->parse) { > + if (!prop->info->set) { > continue; /* no way to set it, don't show */ > } > error_printf("%s.%s=%s\n", driver, prop->name, > @@ -165,7 +165,7 @@ int qdev_device_help(QemuOpts *opts) > } > if (info->bus_info) { > for (prop = info->bus_info->props; prop&& prop->name; prop++) { > - if (!prop->info->parse) { > + if (!prop->info->set) { > continue; /* no way to set it, don't show */ > } > error_printf("%s.%s=%s\n", driver, prop->name,