All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Roth <mdroth@linux.vnet.ibm.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Anthony Liguori <anthony@codemonkey.ws>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path
Date: Wed, 28 Mar 2012 17:08:59 -0500	[thread overview]
Message-ID: <20120328220859.GA10826@illuin> (raw)
In-Reply-To: <4F6B414C.6070206@suse.de>

On Thu, Mar 22, 2012 at 04:12:12PM +0100, Andreas Färber wrote:
> Am 22.03.2012 15:37, schrieb Gerd Hoffmann:
> >>> +            .driver   = "USB",
> >>> +            .property = "full-path",
> >>> +            .value    = "no",
> >>
> >> This touches on our "favorite" bit/bool topic again. While I agree that
> >> "no" makes sense for a property of that name, the current code still
> >> expects "on" and "off". In particular, "yes" would not work as expected.
> > 
> > "no" *does* work as expected though, at least it survived my tests,
> > thats why I didn't notice.
> > 
> > I can s/no/off/ for consistency, no problem.  Merging your yes/no patch
> > is fine with me too.
> 
> I stand corrected: Michael Roth's conversion of qdev properties to use
> visitors implicitly changed the parsing logic to cover yes/no and
> true/false as well. That's great news!

I believe Paolo did that conversion, but agreed :)

> 
> So no change of .value is needed here. The only thing to note is that
> print_bit() will output the value as on/off.
> 
> Sorry for the confusion,
> 
> Andreas
> 
> -- 
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
> 

      reply	other threads:[~2012-03-28 23:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 12:07 [Qemu-devel] [PATCH] usb/vmstate: add parent dev path Gerd Hoffmann
2012-03-22 12:17 ` Paolo Bonzini
2012-03-22 14:01 ` Andreas Färber
2012-03-22 14:37   ` Gerd Hoffmann
2012-03-22 15:12     ` Andreas Färber
2012-03-28 22:08       ` Michael Roth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120328220859.GA10826@illuin \
    --to=mdroth@linux.vnet.ibm.com \
    --cc=afaerber@suse.de \
    --cc=anthony@codemonkey.ws \
    --cc=kraxel@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.