json: fix PRId64 on Win32
commit2c0d4b36e7fe28c569c5436f7724735e35d3c493
authorRoy Tam <roytam@gmail.com>
Thu, 4 Feb 2010 02:30:30 +0000 (4 10:30 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 10 Feb 2010 18:47:58 +0000 (10 12:47 -0600)
tree597ed7dadc4c0789c34ceecc1020d6dd567242c5
parent2198a62eb2518b61c3fc7db26515f106e7498932
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>
json-lexer.c
json-parser.c