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 <stefa...@linux.vnet.ibm.com> Cc: Blue Swirl <blauwir...@gmail.com> Signed-off-by: Andreas Färber <andreas.faer...@web.de> --- 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