diff options
author | Leah Rowe <leah@libreboot.org> | 2025-01-27 05:54:06 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-01-27 05:54:06 +0000 |
commit | a08748a9edac08d7f1d40234e04a97692a6e0b37 (patch) | |
tree | e78d3ca1819a5e150544d860e9b87b03aca447cd | |
parent | 6841a351ebc5ffe32182c3f7079ec41f8dfbdcd0 (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.c | 2 |
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); |