diff --git a/sbin/nvmecontrol/firmware.c b/sbin/nvmecontrol/firmware.c index 79adfb6cd3d3..66c751736ad4 100644 --- a/sbin/nvmecontrol/firmware.c +++ b/sbin/nvmecontrol/firmware.c @@ -94,7 +94,7 @@ read_image_file(char *path, void **buf, int32_t *size) path, (intmax_t)sb.st_size); filesize = (int32_t)sb.st_size; if ((*buf = malloc(filesize)) == NULL) - errx(1, "unable to malloc %zd bytes", filesize); + errx(1, "unable to malloc %d bytes", filesize); if ((*size = read(fd, *buf, filesize)) < 0) err(1, "error reading '%s'", path); /* XXX assuming no short reads */