diff options
author | Alexandre Raymond <cerbere@gmail.com> | 2011-05-29 18:22:50 -0400 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2011-06-14 03:08:57 +0200 |
commit | b4225dfeed324fa407dcdb08957d1467bbed4b00 (patch) | |
tree | 7c574b48328b84d6c588a2561f00e04f0fb34d06 /target-lm32 | |
parent | 903b4920de1e9692d105209901a28b8d0ed5404f (diff) | |
download | qemu-b4225dfeed324fa407dcdb08957d1467bbed4b00.tar.gz qemu-b4225dfeed324fa407dcdb08957d1467bbed4b00.tar.bz2 qemu-b4225dfeed324fa407dcdb08957d1467bbed4b00.zip |
Remove warning in printf due to type mismatch
----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 *". The difference between
pointers is a ptrdiff_t so printf needs '%td'.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
Acked-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'target-lm32')
-rw-r--r-- | 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 eb2115814c..5e197258eb 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=%td\n", dc->pc - pc_start, gen_opc_ptr - gen_opc_buf); } #endif |