summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 17:30:53 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 17:31:04 +0000
commit123e77d07f54e2b20ff213a761d36ca008a328dd (patch)
tree36976d6b178e26d928cc3c414baa2b727f213afc
parentc0a77a7301c52464404d96665f491f34803f46d4 (diff)
util/nvmutil: use portable printf on hexdump
lx means unsigned long, and row is size_t which often is, but this is not guaranteed. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 8529f5c5..43afe9d1 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -570,7 +570,7 @@ hexdump(int partnum)
uint16_t val16;
for (row = 0; row < 8; row++) {
- printf("%08lx ", row << 4);
+ printf("%08zx ", row << 4);
for (c = 0; c < 8; c++) {
val16 = word((row << 3) + c, partnum);
if (c == 4)