From 123e77d07f54e2b20ff213a761d36ca008a328dd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 17:30:53 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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) -- cgit v1.2.1