]> git.ipfire.org Git - thirdparty/qemu.git/commit
json: fix PRId64 on Win32
authorRoy Tam <roytam@gmail.com>
Thu, 4 Feb 2010 02:30:30 +0000 (10:30 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 23 Feb 2010 20:07:58 +0000 (14:07 -0600)
commitea299062eb66dba86b390b7e0f414f6a4e41f11f
tree185f3641de86ea3fa2d701ad52973515e8b1c012
parente03dd1a6c24d96d6ba4b154f2266c44c314c6688
json: fix PRId64 on Win32

OK we are fooled by the json lexer and parser. As we use %I64d to
print 'long long' variables in Win32, but lexer and parser only deal
with %lld but not %I64d, this patch add support for %I64d and solve
'info pci', 'powser_reset' and 'power_powerdown' assert failure in
Win32.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 2c0d4b36e7fe28c569c5436f7724735e35d3c493)
json-lexer.c
json-parser.c