[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] trace: Adapt trace file name for Haiku
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH] trace: Adapt trace file name for Haiku |
Date: |
Sat, 9 Oct 2010 21:55:17 +0200 |
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 <address@hidden>
Cc: Blue Swirl <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
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
--
1.7.3
- [Qemu-devel] [PATCH] trace: Adapt trace file name for Haiku,
Andreas Färber <=