All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: qemu-trivial@nongnu.org, james.hogan@imgtec.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-mips: fix get_physical_address() #if 0 build error
Date: Wed, 28 Aug 2013 23:03:10 +0200	[thread overview]
Message-ID: <20130828210310.GE5908@ohm.aurel32.net> (raw)
In-Reply-To: <1377622116-37650-1-git-send-email-yongbok.kim@imgtec.com>

On Tue, Aug 27, 2013 at 05:48:36PM +0100, Yongbok Kim wrote:
> From: James Hogan <james.hogan@imgtec.com>
> 
> In get_physical_address() is a qemu_log() call inside an #if 0 block.
> When enabled the following build error is hit:
> 
> target-mips/helper.c In function ‘get_physical_address’:
> target-mips/helper.c:220:13: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘hwaddr’ [-Werror=format]
> 
> Fix the *physical (hwaddr) formatting by using "%"HWADDR_PRIx instead of
> TARGET_FMT_lx.
> 
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
> ---
>  target-mips/helper.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/target-mips/helper.c b/target-mips/helper.c
> index 6feef7b..33e0e88 100644
> --- a/target-mips/helper.c
> +++ b/target-mips/helper.c
> @@ -193,7 +193,7 @@ static int get_physical_address (CPUMIPSState *env, hwaddr *physical,
>          }
>      }
>  #if 0
> -    qemu_log(TARGET_FMT_lx " %d %d => " TARGET_FMT_lx " %d (%d)\n",
> +    qemu_log(TARGET_FMT_lx " %d %d => %" HWADDR_PRIx " %d (%d)\n",
>              address, rw, access_type, *physical, *prot, ret);
>  #endif

Thanks, applied.


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net


WARNING: multiple messages have this Message-ID (diff)
From: Aurelien Jarno <aurelien@aurel32.net>
To: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: qemu-trivial@nongnu.org, james.hogan@imgtec.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-mips: fix get_physical_address() #if 0 build error
Date: Wed, 28 Aug 2013 23:03:10 +0200	[thread overview]
Message-ID: <20130828210310.GE5908@ohm.aurel32.net> (raw)
In-Reply-To: <1377622116-37650-1-git-send-email-yongbok.kim@imgtec.com>

On Tue, Aug 27, 2013 at 05:48:36PM +0100, Yongbok Kim wrote:
> From: James Hogan <james.hogan@imgtec.com>
> 
> In get_physical_address() is a qemu_log() call inside an #if 0 block.
> When enabled the following build error is hit:
> 
> target-mips/helper.c In function ‘get_physical_address’:
> target-mips/helper.c:220:13: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘hwaddr’ [-Werror=format]
> 
> Fix the *physical (hwaddr) formatting by using "%"HWADDR_PRIx instead of
> TARGET_FMT_lx.
> 
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
> ---
>  target-mips/helper.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/target-mips/helper.c b/target-mips/helper.c
> index 6feef7b..33e0e88 100644
> --- a/target-mips/helper.c
> +++ b/target-mips/helper.c
> @@ -193,7 +193,7 @@ static int get_physical_address (CPUMIPSState *env, hwaddr *physical,
>          }
>      }
>  #if 0
> -    qemu_log(TARGET_FMT_lx " %d %d => " TARGET_FMT_lx " %d (%d)\n",
> +    qemu_log(TARGET_FMT_lx " %d %d => %" HWADDR_PRIx " %d (%d)\n",
>              address, rw, access_type, *physical, *prot, ret);
>  #endif

Thanks, applied.


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

  parent reply	other threads:[~2013-08-28 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27 16:48 [Qemu-trivial] [PATCH] target-mips: fix get_physical_address() #if 0 build error Yongbok Kim
2013-08-27 16:48 ` [Qemu-devel] " Yongbok Kim
2013-08-27 19:48 ` [Qemu-trivial] " Richard Henderson
2013-08-27 19:48   ` Richard Henderson
2013-08-28  8:28   ` [Qemu-trivial] " James Hogan
2013-08-28  8:28     ` James Hogan
2013-08-28 21:03 ` Aurelien Jarno [this message]
2013-08-28 21:03   ` Aurelien Jarno

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=20130828210310.GE5908@ohm.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=james.hogan@imgtec.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=yongbok.kim@imgtec.com \
    /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.