summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-01-27 05:54:06 +0000
committerLeah Rowe <leah@libreboot.org>2025-01-27 05:54:06 +0000
commita08748a9edac08d7f1d40234e04a97692a6e0b37 (patch)
treee78d3ca1819a5e150544d860e9b87b03aca447cd
parent6841a351ebc5ffe32182c3f7079ec41f8dfbdcd0 (diff)
util/nvmutil: don't say write not needed if errno
otherwise, the output is confusing Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 88ac24dc..16841427 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -470,7 +470,7 @@ writeGbe(void)
cmd_dump();
}
- if ((!tnw) && (flags != O_RDONLY))
+ if ((!tnw) && (flags != O_RDONLY) && (!errno))
fprintf(stderr, "No changes needed on file '%s'\n", filename);
else if (tnw)
printf("%ld bytes written to file '%s'\n", tnw, filename);