From a0bc61f9de518275659b84d65d0e46f6d1c4b24f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 6 Apr 2023 00:56:17 +0100 Subject: util/nvmutil: consolidated error message --- util/nvmutil/nvmutil.c | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.1