Re: [Qemu-devel] [PATCH 13/12] qapi: refine human printing of sizes

2014-02-05 Thread Igor Mammedov
On Thu, 30 Jan 2014 17:42:25 +0100 Paolo Bonzini wrote: > This fixes several bugs or shortcomings of the previous pretty-printer. > In particular: > > * use PRIu64 instead of casting to long long > > * the exact value is included too > > * the correct unit of measure (MiB, GiB, etc.) is used.

Re: [Qemu-devel] [PATCH 13/12] qapi: refine human printing of sizes

2014-01-30 Thread Eric Blake
On 01/30/2014 09:42 AM, Paolo Bonzini wrote: > This fixes several bugs or shortcomings of the previous pretty-printer. > In particular: > > * use PRIu64 instead of casting to long long > > * the exact value is included too > > * the correct unit of measure (MiB, GiB, etc.) is used. PiB and EiB

[Qemu-devel] [PATCH 13/12] qapi: refine human printing of sizes

2014-01-30 Thread Paolo Bonzini
This fixes several bugs or shortcomings of the previous pretty-printer. In particular: * use PRIu64 instead of casting to long long * the exact value is included too * the correct unit of measure (MiB, GiB, etc.) is used. PiB and EiB are added too. * due to an off-by-one error, 512*2^30 was pr