diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-07-04 00:26:24 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-07-04 00:26:24 +0000 |
commit | 4a1b5780c0e7276bbd15a6222f0453ac75a6e7d5 (patch) | |
tree | 2bfa5b880a3969902dc2c19a3cff6a54c738d387 /sbin | |
parent | 6c9946f64c70a0b3d7b6e4a99876a37c62f87efd (diff) | |
download | FreeBSD-src-4a1b5780c0e7276bbd15a6222f0453ac75a6e7d5.zip FreeBSD-src-4a1b5780c0e7276bbd15a6222f0453ac75a6e7d5.tar.gz |
Fix printf argument mismatch reported by gcc on i386.
Reported by: kargl
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/nvmecontrol/firmware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/nvmecontrol/firmware.c b/sbin/nvmecontrol/firmware.c index f82b886..4678301 100644 --- a/sbin/nvmecontrol/firmware.c +++ b/sbin/nvmecontrol/firmware.c @@ -82,7 +82,7 @@ read_image_file(char *path, void **buf, ssize_t *size) exit(EX_IOERR); } if ((*buf = malloc(sb.st_size)) == NULL) { - fprintf(stderr, "Unable to malloc %zd bytes.\n", + fprintf(stderr, "Unable to malloc %jd bytes.\n", sb.st_size); close(fd); exit(EX_IOERR); @@ -95,7 +95,7 @@ read_image_file(char *path, void **buf, ssize_t *size) } if (*size != sb.st_size) { fprintf(stderr, "Error reading '%s', " - "read %zd bytes, requested %zd bytes\n", + "read %zd bytes, requested %jd bytes\n", path, *size, sb.st_size); close(fd); exit(EX_IOERR); |