Skip to content
Snippets Groups Projects
Commit a0bc61f9 authored by Leah Rowe's avatar Leah Rowe
Browse files

util/nvmutil: consolidated error message

parent 0d98d738
Branches
Tags
No related merge requests found
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment