[libvirt] [PATCH] qemu: Fix JSON migrate_set_downtime command
Eric Blake
eblake at redhat.com
Fri Aug 20 13:43:36 UTC 2010
On 08/20/2010 03:21 AM, Daniel P. Berrange wrote:
>> Never mind. I was thinking too much of printf's %d. But with
>> qemuMonitorJSONMakeCommand, d: is a double, and your division by 1000.0
>> does indeed create a value that passes just fine through varargs.
>
> I've never understood why printf() choose %d for integers instead
> of doubles :-)
%d - decimal
%x - hex
%o - octal
and I can also see
%f - floating point
%e - exponent
but:
%g - ?
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100820/c6d37779/attachment-0001.sig>
More information about the libvir-list
mailing list