[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path |
Date: |
Thu, 22 Mar 2012 16:12:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2 |
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!
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