From patchwork Sat Oct 2 10:41:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] target-microblaze: Use %td for ptrdiff_t arguments in debug message Date: Sat, 02 Oct 2010 00:41:04 -0000 From: Stefan Weil X-Patchwork-Id: 66562 Message-Id: <1286016064-6345-2-git-send-email-weil@mail.berlios.de> To: QEMU Developers Cc: Blue Swirl , Markus Armbruster According to ISO/IEC 9899:1999 7.19.6.1, the correct length modifier for ptrdiff_t is 't', not 'z'. Cc: Blue Swirl Cc: Markus Armbruster Signed-off-by: Stefan Weil --- target-microblaze/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 6c305d4..38149bb 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -1516,7 +1516,7 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, #if DISAS_GNU log_target_disas(pc_start, dc->pc - pc_start, 0); #endif - 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