mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 05:00:08 +02:00
util/nvmutil: consolidated error message
This commit is contained in:
@@ -164,8 +164,7 @@ readGbeFile(int *fd, const char *path, int flags, size_t nr)
|
|||||||
if (fstat((*fd), &st) == -1)
|
if (fstat((*fd), &st) == -1)
|
||||||
err(errno, "%s", path);
|
err(errno, "%s", path);
|
||||||
if ((st.st_size != SIZE_8KB)) {
|
if ((st.st_size != SIZE_8KB)) {
|
||||||
fprintf(stderr, "%s: Bad file size (must be 8KiB)\n", path);
|
err(errno = ECANCELED, "File \"%s\" not of size 8KiB", path);
|
||||||
err(errno = ECANCELED, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errno == ENOTDIR)
|
if (errno == ENOTDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user