Am 30.03.2012 19:50, schrieb Anthony Liguori:
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?

That works for my 32 bit Debian, but it would fail on 64 bit Linux.


Regards,

Anthony Liguori


Regards,
Stefan W.






Reply via email to