qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 2/7] qtest: add test framework


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH v4 2/7] qtest: add test framework
Date: Fri, 30 Mar 2012 12:50:34 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0

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

[Prev in Thread] Current Thread [Next in Thread]