summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-04-06 00:56:17 +0100
committerLeah Rowe <leah@libreboot.org>2023-04-06 00:56:17 +0100
commita0bc61f9de518275659b84d65d0e46f6d1c4b24f (patch)
tree5095e7ed5adced500f67e975acb51daf1f40d8be /util
parent0d98d738708c64c59dcc06553cb1abebf6606e4a (diff)
util/nvmutil: consolidated error message
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index c86291c..d8a42cd 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -164,8 +164,7 @@ readGbeFile(int *fd, const char *path, int flags, size_t nr)
if (fstat((*fd), &st) == -1)
err(errno, "%s", path);
if ((st.st_size != SIZE_8KB)) {
- fprintf(stderr, "%s: Bad file size (must be 8KiB)\n", path);
- err(errno = ECANCELED, NULL);
+ err(errno = ECANCELED, "File \"%s\" not of size 8KiB", path);
}
if (errno == ENOTDIR)