qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V5 2/2] qemu-img: Add json output option to the


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH V5 2/2] qemu-img: Add json output option to the info command.
Date: Thu, 23 Aug 2012 15:14:51 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/23/2012 06:42 AM, Benoît Canet wrote:
> This option --output=[human|json] make qemu-img info output on
> human or JSON representation at the choice of the user.
> 

> +static int img_info(int argc, char **argv)
> +{
> +    int c;
> +    bool human = false, json = false;

I'm still not convinced why we need two booleans, when one would do.  If
we ever add a third output type, it would be better to use an enum (0,
1, 2), rather than three separate bools.

>  
> +#undef PRINTH
> +

Where did this come from?  Other than that, the rest of the series seems
okay for 1.3 from my viewpoint.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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