[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-mips: fix get_physical_address() #if 0 b
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] target-mips: fix get_physical_address() #if 0 build error |
Date: |
Wed, 28 Aug 2013 23:03:10 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Aug 27, 2013 at 05:48:36PM +0100, Yongbok Kim wrote:
> From: James Hogan <address@hidden>
>
> 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 <address@hidden>
> Cc: Aurelien Jarno <address@hidden>
> Signed-off-by: Yongbok Kim <address@hidden>
> ---
> 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
address@hidden http://www.aurel32.net