* [PATCH] kho: Remove redundant 0x prefixes
@ 2026-11-04 16:09 Thorsten Blum
2026-11-04 16:15 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-11-04 16:09 UTC (permalink / raw)
To: Mike Rapoport, Pasha Tatashin, Pratyush Yadav, Alexander Graf,
Andrew Morton, Arnd Bergmann, Changyuan Lyu
Cc: Thorsten Blum, kexec, linux-mm, linux-kernel
The %pa format specifier already includes the 0x prefix. Remove the
redundant prefixes to avoid printing 0x0x.
Fixes: c609c144b0e8 ("kexec: add KHO parsing support")
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
kernel/liveupdate/kexec_handover.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kexec_handover.c
index 6f1f55fe3181..5f828eb44f75 100644
--- a/kernel/liveupdate/kexec_handover.c
+++ b/kernel/liveupdate/kexec_handover.c
@@ -2015,11 +2015,11 @@ void __init kho_populate(phys_addr_t fdt_phys, u64 fdt_len,
memblock_add(area->addr, size);
err = memblock_mark_kho_noprsrv(area->addr, size);
if (err) {
- pr_warn("failed to mark the bootmem region 0x%pa+0x%pa: %pe",
+ pr_warn("failed to mark the bootmem region %pa+%pa: %pe",
&area->addr, &size, ERR_PTR(err));
goto unmap_bootmem;
}
- pr_debug("Marked 0x%pa+0x%pa as bootmem", &area->addr, &size);
+ pr_debug("Marked %pa+%pa as bootmem", &area->addr, &size);
}
memblock_reserve(bootmem_phys, bootmem_len);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] kho: Remove redundant 0x prefixes
2026-11-04 16:09 [PATCH] kho: Remove redundant 0x prefixes Thorsten Blum
@ 2026-11-04 16:15 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2026-11-04 16:15 UTC (permalink / raw)
To: Thorsten Blum, Mike Rapoport, Pasha Tatashin, Pratyush Yadav,
Alexander Graf, Andrew Morton, Changyuan Lyu
Cc: kexec, linux-mm, linux-kernel
On Wed, Nov 4, 2026, at 17:09, Thorsten Blum wrote:
> The %pa format specifier already includes the 0x prefix. Remove the
> redundant prefixes to avoid printing 0x0x.
>
> Fixes: c609c144b0e8 ("kexec: add KHO parsing support")
> Signed-off-by: Thorsten Blum <blum@kernel.org>
Hi Thorsten,
The change looks correct, but I see another problem in the same line:
> if (err) {
> - pr_warn("failed to mark the bootmem region 0x%pa+0x%pa: %pe",
> + pr_warn("failed to mark the bootmem region %pa+%pa: %pe",
> &area->addr, &size, ERR_PTR(err));
'size' is a 'u64', not a phys_addr_t, so the pr_warn will print the wrong
on some platforms. Can you change this to use 0x%llx instead, or change
the type of the temporary variable to phys_addr_t instead?
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-04 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 16:09 [PATCH] kho: Remove redundant 0x prefixes Thorsten Blum
2026-11-04 16:15 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®