All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <andreas.faerber@web.de>
To: Markus Armbruster <armbru@redhat.com>,
	Stefan Weil <weil@mail.berlios.de>
Cc: Alexandre Raymond <cerbere@gmail.com>,
	qemu-devel Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH V2 3/3] Remove warning in printf due to type mismatch
Date: Wed, 1 Jun 2011 23:13:58 +0200	[thread overview]
Message-ID: <F7997ACB-0AB6-4A87-A731-931F3A4F760F@web.de> (raw)
In-Reply-To: <1306707770-14632-4-git-send-email-cerbere@gmail.com>

Markus, Stefan,

Am 30.05.2011 um 00:22 schrieb Alexandre Raymond:

> ----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>

You suggested the use of t, are you planning to ack it?

Andreas

> ---
> 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..5e19725 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
> -- 
> 1.7.5
>
>

  reply	other threads:[~2011-06-01 21:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 22:22 [Qemu-devel] [PATCH V2 0/3] Fix compilation issues under darwin Alexandre Raymond
2011-05-29 22:22 ` [Qemu-devel] [PATCH V2 1/3] Darwin: Fix incorrect check for fdatasync() in configure Alexandre Raymond
2011-05-29 23:36   ` Andreas Färber
2011-05-30  0:09     ` Alexandre Raymond
2011-05-30  2:32       ` Alexandre Raymond
2011-06-01 22:26         ` Andreas Färber
2011-05-29 22:22 ` [Qemu-devel] [PATCH V2 2/3] Cocoa: avoid displaying window when command-line contains '-h' or '-help' Alexandre Raymond
2011-05-29 22:32   ` Peter Maydell
2011-05-29 22:40     ` Alexandre Raymond
2011-06-01 23:05     ` Andreas Färber
2011-06-02  6:10       ` Peter Maydell
2011-06-01 22:16   ` Andreas Färber
2011-05-29 22:22 ` [Qemu-devel] [PATCH V2 3/3] Remove warning in printf due to type mismatch Alexandre Raymond
2011-06-01 21:13   ` Andreas Färber [this message]
2011-06-02  7:18   ` Stefan Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F7997ACB-0AB6-4A87-A731-931F3A4F760F@web.de \
    --to=andreas.faerber@web.de \
    --cc=armbru@redhat.com \
    --cc=cerbere@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.