On 03/30/2012 12:40 PM, Stefan Weil wrote:
Hi

this commit breaks builds on Linux i386:

CC libhw64/qtest.o
cc1: warnings being treated as errors
/home/stefan/src/qemu/qemu.org/qemu/qtest.c: In function ‘qtest_send_prefix’:
/home/stefan/src/qemu/qemu.org/qemu/qtest.c:156: error: format ‘%lld’ expects
type ‘long long int’, but argument 3 has type ‘__time_t’
/home/stefan/src/qemu/qemu.org/qemu/qtest.c:156: error: format ‘%06lld’ expects
type ‘long long int’, but argument 4 has type ‘__suseconds_t’
(more follow)

The size of the timeval elements is only 32 bit on my Debian installation,
Therefore this format string in qtest.c does not work:

+#define FMT_timeval "%" PRId64 ".%06" PRId64

Does %ld work instead of PRId64?

Regards,

Anthony Liguori


Regards,
Stefan W.




Reply via email to