From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDfzZ-0001xE-K4 for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDfzX-0007bG-R9 for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:52:05 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:43613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDfzX-0007YT-LB for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:52:03 -0400 Message-ID: <4F75F2C0.3080403@mail.berlios.de> Date: Fri, 30 Mar 2012 19:52:00 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1332942127-8964-1-git-send-email-pbonzini@redhat.com> <1332942127-8964-3-git-send-email-pbonzini@redhat.com> <4F75F011.1040505@mail.berlios.de> <4F75F26A.80801@codemonkey.ws> In-Reply-To: <4F75F26A.80801@codemonkey.ws> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 2/7] qtest: add test framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org 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=20 >> =E2=80=98qtest_send_prefix=E2=80=99: >> /home/stefan/src/qemu/qemu.org/qemu/qtest.c:156: error: format =E2=80=98= %lld=E2=80=99=20 >> expects >> type =E2=80=98long long int=E2=80=99, but argument 3 has type =E2=80=98= __time_t=E2=80=99 >> /home/stefan/src/qemu/qemu.org/qemu/qtest.c:156: error: format=20 >> =E2=80=98%06lld=E2=80=99 expects >> type =E2=80=98long long int=E2=80=99, but argument 4 has type =E2=80=98= __suseconds_t=E2=80=99 >> (more follow) >> >> The size of the timeval elements is only 32 bit on my Debian=20 >> 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. >> >> > >