From: Stefan Weil Date: Thu, 12 Apr 2012 13:44:24 +0000 (+0200) Subject: cpu-exec: Remove non-portable type cast and fix format string X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3ba19255450666869ecfe764774c2371f989e68b;p=qemu.git cpu-exec: Remove non-portable type cast and fix format string This change is needed for w64, but also changes the code for other hosts. Signed-off-by: Stefan Weil --- diff --git a/cpu-exec.c b/cpu-exec.c index d153f978e1..0344cd5c59 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -541,8 +541,8 @@ int cpu_exec(CPUArchState *env) tb_invalidated_flag = 0; } #ifdef CONFIG_DEBUG_EXEC - qemu_log_mask(CPU_LOG_EXEC, "Trace 0x%08lx [" TARGET_FMT_lx "] %s\n", - (long)tb->tc_ptr, tb->pc, + qemu_log_mask(CPU_LOG_EXEC, "Trace %p [" TARGET_FMT_lx "] %s\n", + tb->tc_ptr, tb->pc, lookup_symbol(tb->pc)); #endif /* see if we can patch the calling TB. When the TB