Skip to content

Commit

Permalink
target-microblaze: Use %td for ptrdiff_t arguments in debug message
Browse files Browse the repository at this point in the history
According to ISO/IEC 9899:1999 7.19.6.1,
the correct length modifier for ptrdiff_t is 't', not 'z'.

Cc: Blue Swirl <[email protected]>
Cc: Markus Armbruster <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Edgar E. Iglesias <[email protected]>
  • Loading branch information
Stefan Weil authored and edgarigl committed Oct 2, 2010
1 parent 3b2e3dc commit e6aa0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-microblaze/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6aa0f1

Please sign in to comment.