LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc/64s/hash: Remove redundant 0x prefixes in htab_initialize()
@ 2026-11-22 18:48 Thorsten Blum
  2026-11-27  3:04 ` Ritesh Harjani
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-11-22 18:48 UTC (permalink / raw)
  To: Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP), Ritesh Harjani (IBM),
	Shrikanth Hegde, Yury Norov
  Cc: Thorsten Blum, linuxppc-dev

The %pa format specifier already includes the 0x prefix. Remove the
redundant prefixes to avoid printing 0x0x.

Fixes: 178dd2ee2b72 ("powerpc/64s/hash: Fix phys_addr_t printf format in htab_initialize()")
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 arch/powerpc/mm/book3s64/hash_utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/mm/book3s64/hash_utils.c b/arch/powerpc/mm/book3s64/hash_utils.c
index e4fcf929cb33..555d79ba18cc 100644
--- a/arch/powerpc/mm/book3s64/hash_utils.c
+++ b/arch/powerpc/mm/book3s64/hash_utils.c
@@ -1405,8 +1405,8 @@ static void __init htab_initialize(void)
 		size = end - base;
 		base = (unsigned long)__va(base);
 
-		pr_debug("creating mapping for region: 0x%pa..0x%pa (prot: %lx)\n",
-				&base, &size, prot);
+		pr_debug("creating mapping for region: %pa..%pa (prot: %lx)\n",
+			 &base, &size, prot);
 
 		if ((base + size) >= H_VMALLOC_START) {
 			pr_warn("Outside the supported range\n");


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-27  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 18:48 [PATCH] powerpc/64s/hash: Remove redundant 0x prefixes in htab_initialize() Thorsten Blum
2026-11-27  3:04 ` Ritesh Harjani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox