qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nicholas Piggin <npiggin@gmail.com>
To: qemu-devel@nongnu.org
Cc: "Nicholas Piggin" <npiggin@gmail.com>,
	qemu-ppc@nongnu.org, "Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tree()
Date: Sun, 31 Mar 2024 17:33:40 +1000	[thread overview]
Message-ID: <20240331073349.88324-4-npiggin@gmail.com> (raw)
In-Reply-To: <20240331073349.88324-1-npiggin@gmail.com>

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



  parent reply	other threads:[~2024-03-31  7:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-31  7:33 [PULL 0/8] ppc-for-9.0-3 queue Nicholas Piggin
2024-03-31  7:33 ` [PULL 1/8] spapr: nested: use bitwise NOT operator for flags check Nicholas Piggin
2024-03-31  7:33 ` [PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header Nicholas Piggin
2024-03-31  7:33 ` Nicholas Piggin [this message]
2024-03-31  7:33 ` [PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits Nicholas Piggin
2024-03-31  7:33 ` [PULL 5/8] target/ppc: Fix GDB register indexing on secondary CPUs Nicholas Piggin
2024-03-31  7:33 ` [PULL 6/8] target/ppc: Do not clear MSR[ME] on MCE interrupts to supervisor Nicholas Piggin
2024-03-31  7:33 ` [PULL 7/8] tests/avocado: Fix ppc_hv_tests.py xorriso dependency guard Nicholas Piggin
2024-03-31  7:33 ` [PULL 8/8] tests/avocado: ppc_hv_tests.py set alpine time before setup-alpine Nicholas Piggin
2024-04-01 12:09 ` [PULL 0/8] ppc-for-9.0-3 queue Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240331073349.88324-4-npiggin@gmail.com \
    --to=npiggin@gmail.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).