[PATCH v1 3/4] util_lib/elf_info: Fix format specifiers for fprintf()
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Mon Oct 14 08:31:28 PDT 2024
Compiler is not happy when wrong specifier is being used.
Fix them all.
Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
---
util_lib/elf_info.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util_lib/elf_info.c b/util_lib/elf_info.c
index 7ca9870bfca0..8f84f5254cc2 100644
--- a/util_lib/elf_info.c
+++ b/util_lib/elf_info.c
@@ -890,7 +890,7 @@ static void dump_dmesg_structured(int fd, void (*handler)(char*, unsigned int))
handler(out_buf, len);
fprintf(stderr, "Cycle when parsing dmesg detected.\n");
fprintf(stderr, "The prink log_buf is most likely corrupted.\n");
- fprintf(stderr, "log_buf = 0x%lx, idx = 0x%x\n",
+ fprintf(stderr, "log_buf = 0x%llx, idx = 0x%x\n",
log_buf, current_idx);
exit(68);
}
@@ -904,7 +904,7 @@ static void dump_dmesg_structured(int fd, void (*handler)(char*, unsigned int))
handler(out_buf, len);
fprintf(stderr, "Index outside log_buf detected.\n");
fprintf(stderr, "The prink log_buf is most likely corrupted.\n");
- fprintf(stderr, "log_buf = 0x%lx, idx = 0x%x\n",
+ fprintf(stderr, "log_buf = 0x%llx, idx = 0x%x\n",
log_buf, current_idx);
exit(69);
}
--
2.43.0.rc1.1336.g36b5255a03ac
More information about the kexec
mailing list