util/nvmutil: allow dump without good checksums

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-09 21:41:14 +00:00
parent 45ea92a077
commit 7d64b8ea8d

View File

@@ -289,7 +289,7 @@ static const struct commands command[] = {
{ CMD_DUMP, "dump", cmd_helper_dump, ARGC_3,
NO_INVERT, SET_MOD_OFF,
ARG_NOPART,
CHECKSUM_READ, SKIP_CHECKSUM_WRITE,
SKIP_CHECKSUM_READ, SKIP_CHECKSUM_WRITE,
NVM_SIZE },
{ CMD_SETMAC, "setmac", cmd_helper_setmac, ARGC_3,
@@ -1037,8 +1037,12 @@ cmd_helper_dump(void)
{
size_t partnum;
for (partnum = 0; partnum < 2; partnum++) {
int errval = good_checksum(0);
errval |= good_checksum(1);
if (errval)
errno = 0;
for (partnum = 0; partnum < 2; partnum++) {
printf("MAC (part %zu): ", partnum);
print_mac_from_nvm(partnum);
hexdump(partnum);