[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 5/6] Remove warning in printf due to type mismatch
From: |
Alexandre Raymond |
Subject: |
[Qemu-trivial] [PATCH 5/6] Remove warning in printf due to type mismatch |
Date: |
Fri, 27 May 2011 13:22:30 -0400 |
----8<----
qemu/target-lm32/translate.c: In function ‘gen_intermediate_code_internal’:
qemu/target-lm32/translate.c:1135: warning: format ‘%zd’ expects type ‘signed
size_t’, but argument 4 has type ‘int’
----8<----
Both gen_opc_ptr and gen_opc_buf are "uint16_t *", so a simple '%d' should
be able to describe their relative difference.
Signed-off-by: Alexandre Raymond <address@hidden>
---
target-lm32/translate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-lm32/translate.c b/target-lm32/translate.c
index eb21158..0f69f27 100644
--- a/target-lm32/translate.c
+++ b/target-lm32/translate.c
@@ -1132,7 +1132,7 @@ static void gen_intermediate_code_internal(CPUState *env,
if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) {
qemu_log("\n");
log_target_disas(pc_start, dc->pc - pc_start, 0);
- qemu_log("\nisize=%d osize=%zd\n",
+ qemu_log("\nisize=%d osize=%d\n",
dc->pc - pc_start, gen_opc_ptr - gen_opc_buf);
}
#endif
--
1.7.5
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/6] Fix incorrect check for fdatasync() in configure, (continued)
[Qemu-trivial] [PATCH 2/6] Cocoa: avoid displaying window when command-line contains '-h', Alexandre Raymond, 2011/05/27
[Qemu-trivial] [PATCH 3/6] Fix compilation warning due to incorrectly specified type, Alexandre Raymond, 2011/05/27
[Qemu-trivial] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main, Alexandre Raymond, 2011/05/27
[Qemu-trivial] [PATCH 5/6] Remove warning in printf due to type mismatch,
Alexandre Raymond <=
[Qemu-trivial] [PATCH 6/6] Avoid compilation warning regarding kvm under darwin, Alexandre Raymond, 2011/05/27
Re: [Qemu-trivial] [Qemu-devel] [PATCH 0/6] Fix compilation issues under darwin, Andreas Färber, 2011/05/28