diff options
author | Leah Rowe <leah@libreboot.org> | 2023-04-06 00:56:17 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-04-06 00:56:17 +0100 |
commit | a0bc61f9de518275659b84d65d0e46f6d1c4b24f (patch) | |
tree | 5095e7ed5adced500f67e975acb51daf1f40d8be /util/nvmutil/nvmutil.c | |
parent | 0d98d738708c64c59dcc06553cb1abebf6606e4a (diff) |
util/nvmutil: consolidated error message
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index c86291c6..d8a42cd4 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) |