[PATCH v2] kho: Remove redundant 0x prefixes
From: Thorsten Blum
Date: Wed Nov 04 2026 - 11:37:57 EST
The %pa format specifier already includes the 0x prefix. Remove the
redundant prefixes to avoid printing 0x0x.
Use phys_addr_t for size to match the expected type.
Fixes: c609c144b0e8 ("kexec: add KHO parsing support")
Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
---
Changes in v2:
- Use phys_addr_t for size as suggested by Arnd (thanks!)
- v1: https://lore.kernel.org/r/20261104160931.137174-3-blum@xxxxxxxxxx/
kernel/liveupdate/kexec_handover.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kexec_handover.c
index 6f1f55fe3181..6a7600a0a7d5 100644
--- a/kernel/liveupdate/kexec_handover.c
+++ b/kernel/liveupdate/kexec_handover.c
@@ -2010,16 +2010,16 @@ void __init kho_populate(phys_addr_t fdt_phys, u64 fdt_len,
*/
for (int i = 0; i < bootmem_cnt; i++) {
struct kho_bootmem *area = &bootmem[i];
- u64 size = area->size;
+ phys_addr_t size = area->size;
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);