[PATCH v4 2/6] kexec/kexec-elf-exec.c: Replace %lux with %lx
Askar Safin
safinaskar at zohomail.com
Tue Aug 19 14:30:10 PDT 2025
Replace %lux, which prints a decimal number followed by literal 'x',
with %lx, which prints the hexadecimal one. The latter is more useful
for the (address) ranges.
Fixes: d6bc88c0696 ("elf: Support ELF loading with relocation")
Reviewed-by: Andy Shevchenko <andy at kernel.org>
Signed-off-by: Askar Safin <safinaskar at zohomail.com>
---
kexec/kexec-elf-exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kexec/kexec-elf-exec.c b/kexec/kexec-elf-exec.c
index b337642..644af8a 100644
--- a/kexec/kexec-elf-exec.c
+++ b/kexec/kexec-elf-exec.c
@@ -167,7 +167,7 @@ int elf_exec_load_relocatable(struct mem_ehdr *ehdr, struct kexec_info *info,
int result;
if (reloc_min > reloc_max) {
- fprintf(stderr, "Bad relocation range, start=%lux > end=%lux.\n", reloc_min, reloc_max);
+ fprintf(stderr, "Bad relocation range, start=%lx > end=%lx.\n", reloc_min, reloc_max);
result = -1;
goto out;
}
--
2.47.2
More information about the kexec
mailing list