From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDfyD-00013Q-DF for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDfyA-0007Ig-VH for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:50:40 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:46486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDfyA-0007IG-QG for qemu-devel@nongnu.org; Fri, 30 Mar 2012 13:50:38 -0400 Received: by obbwd20 with SMTP id wd20so1396837obb.4 for ; Fri, 30 Mar 2012 10:50:37 -0700 (PDT) Message-ID: <4F75F26A.80801@codemonkey.ws> Date: Fri, 30 Mar 2012 12:50:34 -0500 From: Anthony Liguori 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> In-Reply-To: <4F75F011.1040505@mail.berlios.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Stefan Weil Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org 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. > >