* [Qemu-devel] [PATCH 1/2] target-cris: Use %td for ptrdiff_t arguments in debug message
@ 2010-10-02 10:41 Stefan Weil
2010-10-02 10:41 ` [Qemu-devel] [PATCH 2/2] target-microblaze: " Stefan Weil
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Weil @ 2010-10-02 10:41 UTC (permalink / raw)
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 <blauwirbel@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
target-cris/translate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-cris/translate.c b/target-cris/translate.c
index 45c7682..8361369 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -3409,7 +3409,7 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) {
log_target_disas(pc_start, dc->pc - pc_start,
dc->env->pregs[PR_VR]);
- 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
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH 2/2] target-microblaze: Use %td for ptrdiff_t arguments in debug message
2010-10-02 10:41 [Qemu-devel] [PATCH 1/2] target-cris: Use %td for ptrdiff_t arguments in debug message Stefan Weil
@ 2010-10-02 10:41 ` Stefan Weil
2010-10-02 11:42 ` Edgar E. Iglesias
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Weil @ 2010-10-02 10:41 UTC (permalink / raw)
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 <blauwirbel@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
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
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] target-microblaze: Use %td for ptrdiff_t arguments in debug message
2010-10-02 10:41 ` [Qemu-devel] [PATCH 2/2] target-microblaze: " Stefan Weil
@ 2010-10-02 11:42 ` Edgar E. Iglesias
0 siblings, 0 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2010-10-02 11:42 UTC (permalink / raw)
To: Stefan Weil; +Cc: Blue Swirl, QEMU Developers, Markus Armbruster
On Sat, Oct 02, 2010 at 12:41:04PM +0200, Stefan Weil wrote:
> According to ISO/IEC 9899:1999 7.19.6.1,
> the correct length modifier for ptrdiff_t is 't', not 'z'.
>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Cc: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Applied both this one and the cris patch.
Thanks
> ---
> 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
> --
> 1.7.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-02 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-02 10:41 [Qemu-devel] [PATCH 1/2] target-cris: Use %td for ptrdiff_t arguments in debug message Stefan Weil
2010-10-02 10:41 ` [Qemu-devel] [PATCH 2/2] target-microblaze: " Stefan Weil
2010-10-02 11:42 ` Edgar E. Iglesias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).