diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-07-12 18:13:41 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-07-12 18:13:41 +0000 |
commit | 9b5eb8f860e576727754c92deb610ae7ef286651 (patch) | |
tree | 346b1278c50ae8c15ff2b8ac927558f9e9d0039b | |
parent | 1747a8a491c42a9a1dc9ddb01803c51366860a86 (diff) | |
download | FreeBSD-src-9b5eb8f860e576727754c92deb610ae7ef286651.zip FreeBSD-src-9b5eb8f860e576727754c92deb610ae7ef286651.tar.gz |
%d should be used for printing int32_t instead of %zd.
clang does not complain about this - only gcc.
MFC after: 3 days
-rw-r--r-- | sbin/nvmecontrol/firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/nvmecontrol/firmware.c b/sbin/nvmecontrol/firmware.c index 79adfb6..66c7517 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 */ |