From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58476 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4fXF-0000xO-64 for qemu-devel@nongnu.org; Sat, 09 Oct 2010 15:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4fX8-0000QQ-8u for qemu-devel@nongnu.org; Sat, 09 Oct 2010 15:56:43 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:51803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4fX7-0000QB-Ux for qemu-devel@nongnu.org; Sat, 09 Oct 2010 15:56:42 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 9 Oct 2010 21:55:17 +0200 Message-Id: <1286654117-16193-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] trace: Adapt trace file name for Haiku List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: haikuports-devs@ports.haiku-files.org, Blue Swirl , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Stefan Hajnoczi Resolves the following warning: CC simpletrace.o /Data/QEMU/qemu/simpletrace.c: In function 'st_set_trace_file': /Data/QEMU/qemu/simpletrace.c:77: warning: format '%u' expects type 'unsi= gned int', but argument 3 has type 'pid_t' Cc: Stefan Hajnoczi Cc: Blue Swirl Signed-off-by: Andreas F=C3=A4rber --- configure | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure b/configure index d303061..3e694a2 100755 --- a/configure +++ b/configure @@ -2609,7 +2609,11 @@ if test "$trace_backend" =3D "simple"; then fi # Set the appropriate trace file. if test "$trace_backend" =3D "simple"; then - trace_file=3D"\"$trace_file-%u\"" + if test "$haiku" =3D "yes"; then + trace_file=3D"\"$trace_file-%lu\"" + else + trace_file=3D"\"$trace_file-%u\"" + fi fi echo "CONFIG_TRACE_FILE=3D$trace_file" >> $config_host_mak =20 --=20 1.7.3