From patchwork Sat Oct 9 19:55:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 67329 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8F139B7043 for ; Sun, 10 Oct 2010 06:57:36 +1100 (EST) Received: from localhost ([127.0.0.1]:43342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4fXw-0000xb-M3 for incoming@patchwork.ozlabs.org; Sat, 09 Oct 2010 15:57:32 -0400 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 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id 4AE1B176EB009; Sat, 9 Oct 2010 21:56:40 +0200 (CEST) Received: from [87.173.102.109] (helo=localhost.localdomain) by smtp02.web.de with asmtp (WEB.DE 4.110 #24) id 1P4fX5-0002MC-00; Sat, 09 Oct 2010 21:56:40 +0200 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Sat, 9 Oct 2010 21:55:17 +0200 Message-Id: <1286654117-16193-1-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.3 MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX1/fpYKmcPFQQ6nsqAtMuqFV+as4oWAjwb+JbOE4 wZI2UF/358ZK0EkQIzgNW5u63leHvDTVRDwDD4SAub7umD5m2w +2nyzEVYs4N0SVpYHgXA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: haikuports-devs@ports.haiku-files.org, Blue Swirl , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH] trace: Adapt trace file name for Haiku X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 'unsigned int', but argument 3 has type 'pid_t' Cc: Stefan Hajnoczi Cc: Blue Swirl Signed-off-by: Andreas Färber --- 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" = "simple"; then fi # Set the appropriate trace file. if test "$trace_backend" = "simple"; then - trace_file="\"$trace_file-%u\"" + if test "$haiku" = "yes"; then + trace_file="\"$trace_file-%lu\"" + else + trace_file="\"$trace_file-%u\"" + fi fi echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak