Skip to content

Commit

Permalink
target/ppc/mmu-radix64: Use correct string format in walk_tree()
Browse files Browse the repository at this point in the history
'mask', 'nlb' and 'base_addr' are all uin64_t types.
Use the corresponding PRIx64 format.

Fixes: d2066bc ("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>
  • Loading branch information
philmd authored and npiggin committed Mar 30, 2024
1 parent beb0b62 commit d7d9c60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions target/ppc/mmu-radix64.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ static int ppc_radix64_next_level(AddressSpace *as, vaddr eaddr,

if (nlb & mask) {
qemu_log_mask(LOG_GUEST_ERROR,
"%s: misaligned page dir/table base: 0x"TARGET_FMT_lx
" page dir size: 0x"TARGET_FMT_lx"\n",
"%s: misaligned page dir/table base: 0x%" PRIx64
" page dir size: 0x%" PRIx64 "\n",
__func__, nlb, mask + 1);
nlb &= ~mask;
}
Expand All @@ -324,8 +324,8 @@ static int ppc_radix64_walk_tree(AddressSpace *as, vaddr eaddr,

if (base_addr & mask) {
qemu_log_mask(LOG_GUEST_ERROR,
"%s: misaligned page dir base: 0x"TARGET_FMT_lx
" page dir size: 0x"TARGET_FMT_lx"\n",
"%s: misaligned page dir base: 0x%" PRIx64
" page dir size: 0x%" PRIx64 "\n",
__func__, base_addr, mask + 1);
base_addr &= ~mask;
}
Expand Down

0 comments on commit d7d9c60

Please sign in to comment.