diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-08-27 17:48:36 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-08-28 19:28:02 +0200 |
commit | 951fab990db05d47ab9da5e72521e406c73a3eb9 (patch) | |
tree | d57dc23ca0871b1f1ed472a5e76d4b6e0a9fb678 /target-mips | |
parent | 401c227b0a1134245ec61c6c5a9997cfc963c8e4 (diff) | |
download | qemu-951fab990db05d47ab9da5e72521e406c73a3eb9.zip qemu-951fab990db05d47ab9da5e72521e406c73a3eb9.tar.gz qemu-951fab990db05d47ab9da5e72521e406c73a3eb9.tar.bz2 |
target-mips: fix get_physical_address() #if 0 build error
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>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-mips')
-rw-r--r-- | 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 |