]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target-mips: fix get_physical_address() #if 0 build error
authorJames Hogan <james.hogan@imgtec.com>
Tue, 27 Aug 2013 16:48:36 +0000 (17:48 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 28 Aug 2013 17:28:02 +0000 (19:28 +0200)
commit951fab990db05d47ab9da5e72521e406c73a3eb9
treed57dc23ca0871b1f1ed472a5e76d4b6e0a9fb678
parent401c227b0a1134245ec61c6c5a9997cfc963c8e4
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>
target-mips/helper.c