mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
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>
This commit is contained in:
@@ -570,7 +570,7 @@ hexdump(int partnum)
|
|||||||
uint16_t val16;
|
uint16_t val16;
|
||||||
|
|
||||||
for (row = 0; row < 8; row++) {
|
for (row = 0; row < 8; row++) {
|
||||||
printf("%08lx ", row << 4);
|
printf("%08zx ", row << 4);
|
||||||
for (c = 0; c < 8; c++) {
|
for (c = 0; c < 8; c++) {
|
||||||
val16 = word((row << 3) + c, partnum);
|
val16 = word((row << 3) + c, partnum);
|
||||||
if (c == 4)
|
if (c == 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user