util/nvmutil: use zd for printf in valid_read

more portable

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 22:51:50 +00:00
parent cc51ac32d0
commit 3077f51c67
+1 -1
View File
@@ -385,7 +385,7 @@ valid_read(const char *rpath, ssize_t rval, ssize_t rsize, int retry)
if (rval == (ssize_t) rsize)
return 1;
if (rval != -1)
err(ECANCELED, "Short read, %lld: %s", rval, rpath);
err(ECANCELED, "Short read, %zd: %s", rval, rpath);
if (errno != EINTR)
err(ECANCELED, "read '%s'", rpath);
if (retry == MAX_RETRY_READ - 1)