mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: Fix bad error messages on R/W
The messages didn't really make sense. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -248,7 +248,7 @@ readGbe(void)
|
||||
err_if(nr == -1);
|
||||
if (nr != nf)
|
||||
err(errno == ECANCELED,
|
||||
"%ld bytes written on '%s', expected %ld bytes\n",
|
||||
"%ld bytes read from '%s', expected %ld bytes\n",
|
||||
nr, filename, nf);
|
||||
|
||||
tnr += nr;
|
||||
@@ -475,7 +475,7 @@ writeGbe(void)
|
||||
err_if(nw == -1);
|
||||
if (nw != nf)
|
||||
err(errno == ECANCELED,
|
||||
"%ld bytes written on '%s', expected %ld bytes\n",
|
||||
"%ld bytes written to '%s', expected %ld bytes\n",
|
||||
nw, filename, nf);
|
||||
|
||||
tnw += nf;
|
||||
|
||||
Reference in New Issue
Block a user