From a08748a9edac08d7f1d40234e04a97692a6e0b37 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 27 Jan 2025 05:54:06 +0000 Subject: util/nvmutil: don't say write not needed if errno otherwise, the output is confusing Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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); -- cgit v1.2.1