summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2022-11-18 20:07:13 +0000
committerLeah Rowe <leah@libreboot.org>2022-11-18 20:07:13 +0000
commit6c12afa996113b9737fcb36ae13962a687f49365 (patch)
tree55629709235bfaddbd3f594b542b6b78404a133e /util
parent501745630b78c99b2297e8af3589c27dbae77321 (diff)
util/nvmutil: more human-friendly exit messages
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 9f93ae59..5cb53be8 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -105,6 +105,8 @@ main(int argc, char *argv[])
errno = 0;
if (pwrite(fd, gbe, SIZE_8KB, 0) == SIZE_8KB)
close(fd);
+ if (errno == 0)
+ printf("%s successfully modified\n", FILENAME);
}
}
@@ -286,7 +288,7 @@ validChecksum(int partnum)
total += word(w, partnum);
if (total != 0xBABA) {
- fprintf(stderr, "BAD checksum in part %d\n", partnum);
+ fprintf(stderr, "WARNING: BAD checksum in part %d\n", partnum);
errno = ECANCELED;
return 0;
}