util/nvmutil: don't say write not needed if errno
otherwise, the output is confusing Signed-off-by: Leah Rowe <leah@libreboot.org>master
parent
a5549b43f8
commit
a0d7c564fb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue