mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 08:20:59 +02:00
util/nvmutil: fix a few bad printf statements
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user