util/nvmutil: fix a few bad printf statements

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 19:03:06 +00:00
parent 0698c6ada4
commit 6d2a1afbd4
+3 -3
View File
@@ -621,7 +621,7 @@ cmd_brick(void)
if (!good_checksum(part)) { if (!good_checksum(part)) {
err(ECANCELED, err(ECANCELED,
"Part %d checksum already invalid in file '%s'", "Part %zu checksum already invalid in file '%s'",
part, fname); part, fname);
} }
@@ -637,7 +637,7 @@ static void
cmd_copy(void) cmd_copy(void)
{ {
if (!good_checksum(part ^ 1)) if (!good_checksum(part ^ 1))
err(ECANCELED, "copy p%d, file '%s'", part ^ 1, fname); err(ECANCELED, "copy p%zu, file '%s'", part ^ 1, fname);
/* /*
* SPEED HACK: * SPEED HACK:
@@ -737,7 +737,7 @@ check_bound(size_t c, size_t p)
*/ */
if (p != 0 && p != 1) if (p != 0 && p != 1)
err(EINVAL, "check_bound: invalid partnum %d", p); err(EINVAL, "check_bound: invalid partnum %zu", p);
if (c >= NVM_WORDS) if (c >= NVM_WORDS)
err(EINVAL, "check_bound: out of bounds %zu", c); err(EINVAL, "check_bound: out of bounds %zu", c);
} }