qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qdev property listing broken


From: Paolo Bonzini
Subject: Re: [Qemu-devel] qdev property listing broken
Date: Tue, 03 Apr 2012 09:12:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Il 03/04/2012 00:27, Peter Maydell ha scritto:
> On 2 April 2012 23:03, Paolo Bonzini <address@hidden> wrote:
>> Il 02/04/2012 22:07, Peter Maydell ha scritto:
>>> On 2 April 2012 20:40, Paolo Bonzini <address@hidden> wrote:
>>>> diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c
>>>> index a310cc7..923519c 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->get) {
>>>>             continue;           /* no way to set it, don't show */
>>>>         }
>>>
>>> This looks really weird: there's no "get" method so we conclude
>>> "no way to *set* it" ?? Is the comment wrong?
>>
>> See the comment above.
> 
> You mean
>         /*
>          * TODO Properties without a parser are just for dirty hacks.
>          * qdev_prop_ptr is the only such PropertyInfo.  It's marked
>          * for removal.  This conditional should be removed along with
>          * it.
>          */
> ?
> 
> That also looks odd now because we're no longer testing whether the
> property has a parser... (plus doesn't qdev_prop_vlan also have no
> parser ?)

Oops... parse is set, print is get.  It was too late...

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]