target/ppc/mmu-radix64: Use correct string format in walk_tree()
'mask', 'nlb' and 'base_addr' are all uin64_t types.
Use the corresponding PRIx64 format.
Fixes: d2066bc50d
("target/ppc: Check page dir/table base alignment")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
beb0b62c3e
commit
d7d9c6071e
|
@ -300,8 +300,8 @@ static int ppc_radix64_next_level(AddressSpace *as, vaddr eaddr,
|
||||||
|
|
||||||
if (nlb & mask) {
|
if (nlb & mask) {
|
||||||
qemu_log_mask(LOG_GUEST_ERROR,
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
"%s: misaligned page dir/table base: 0x"TARGET_FMT_lx
|
"%s: misaligned page dir/table base: 0x%" PRIx64
|
||||||
" page dir size: 0x"TARGET_FMT_lx"\n",
|
" page dir size: 0x%" PRIx64 "\n",
|
||||||
__func__, nlb, mask + 1);
|
__func__, nlb, mask + 1);
|
||||||
nlb &= ~mask;
|
nlb &= ~mask;
|
||||||
}
|
}
|
||||||
|
@ -324,8 +324,8 @@ static int ppc_radix64_walk_tree(AddressSpace *as, vaddr eaddr,
|
||||||
|
|
||||||
if (base_addr & mask) {
|
if (base_addr & mask) {
|
||||||
qemu_log_mask(LOG_GUEST_ERROR,
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
"%s: misaligned page dir base: 0x"TARGET_FMT_lx
|
"%s: misaligned page dir base: 0x%" PRIx64
|
||||||
" page dir size: 0x"TARGET_FMT_lx"\n",
|
" page dir size: 0x%" PRIx64 "\n",
|
||||||
__func__, base_addr, mask + 1);
|
__func__, base_addr, mask + 1);
|
||||||
base_addr &= ~mask;
|
base_addr &= ~mask;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue