[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tre
From: |
Nicholas Piggin |
Subject: |
[PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tree() |
Date: |
Sun, 31 Mar 2024 17:33:40 +1000 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
'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>
---
target/ppc/mmu-radix64.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/ppc/mmu-radix64.c b/target/ppc/mmu-radix64.c
index 5823e039e6..690dff7a49 100644
--- a/target/ppc/mmu-radix64.c
+++ b/target/ppc/mmu-radix64.c
@@ -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;
}
@@ -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;
}
--
2.43.0
- [PULL 0/8] ppc-for-9.0-3 queue, Nicholas Piggin, 2024/03/31
- [PULL 1/8] spapr: nested: use bitwise NOT operator for flags check, Nicholas Piggin, 2024/03/31
- [PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header, Nicholas Piggin, 2024/03/31
- [PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tree(),
Nicholas Piggin <=
- [PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits, Nicholas Piggin, 2024/03/31
- [PULL 5/8] target/ppc: Fix GDB register indexing on secondary CPUs, Nicholas Piggin, 2024/03/31
- [PULL 6/8] target/ppc: Do not clear MSR[ME] on MCE interrupts to supervisor, Nicholas Piggin, 2024/03/31
- [PULL 7/8] tests/avocado: Fix ppc_hv_tests.py xorriso dependency guard, Nicholas Piggin, 2024/03/31
- [PULL 8/8] tests/avocado: ppc_hv_tests.py set alpine time before setup-alpine, Nicholas Piggin, 2024/03/31