qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 07/12] qapi: add human mode to StringOutputVisit


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 07/12] qapi: add human mode to StringOutputVisitor
Date: Thu, 30 Jan 2014 07:20:28 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 01/30/2014 07:12 AM, Paolo Bonzini wrote:
> Il 30/01/2014 15:09, Eric Blake ha scritto:
> | Also, I like how your int printout was both decimal and hex; but
> | here you are throwing away information (and the bigger the number,
> | the more we lose as to how much got rounded away).  I'd rather see
> | this as:
> |
> | "%0.03f%c (%llu)"
> |
> | so that we also have access to the unrounded exact amount.
> 
> Perhaps the other way round (since hex is in parentheses)?

Indeed, exact(human) is better than human(exact).

> 
> This patch is just moving the code from qdev-properties.c.  I agree
> with all your suggestion, but I'd prefer to tackle it as follow-ups or
> as patch 13/12.  There are other problems, like 512MB printed as
> 0.500G (which is correct but looks weird).

Sure - if you post 13/12, then I'm fine with this one having:
Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +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]