From 4a1b5780c0e7276bbd15a6222f0453ac75a6e7d5 Mon Sep 17 00:00:00 2001 From: jimharris Date: Thu, 4 Jul 2013 00:26:24 +0000 Subject: Fix printf argument mismatch reported by gcc on i386. Reported by: kargl --- sbin/nvmecontrol/firmware.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/nvmecontrol') 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); -- cgit v1.1