summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-03-11 17:40:39 +0000
committered <ed@FreeBSD.org>2009-03-11 17:40:39 +0000
commit0385dbe697d00a5f39f6f8e2ed380aca2eb5f757 (patch)
tree455cc4122cb5db21a3ac7258b866b9079a6c2b82 /sbin
parent857800881079b270b8f60ec78c08ad97bb1f00ee (diff)
downloadFreeBSD-src-0385dbe697d00a5f39f6f8e2ed380aca2eb5f757.zip
FreeBSD-src-0385dbe697d00a5f39f6f8e2ed380aca2eb5f757.tar.gz
Also use %zu to print the allocation size when malloc(3) fails.
Discussed with: phk
Diffstat (limited to 'sbin')
-rw-r--r--sbin/recoverdisk/recoverdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/recoverdisk/recoverdisk.c b/sbin/recoverdisk/recoverdisk.c
index a2aed4b..dee3d2c 100644
--- a/sbin/recoverdisk/recoverdisk.c
+++ b/sbin/recoverdisk/recoverdisk.c
@@ -226,7 +226,7 @@ main(int argc, char * const argv[])
buf = malloc(bigsize);
if (buf == NULL)
- err(1, "Cannot allocate %jd bytes buffer", (intmax_t)bigsize);
+ err(1, "Cannot allocate %zu bytes buffer", bigsize);
if (argc > 1) {
fdw = open(argv[1], flags, DEFFILEMODE);
OpenPOWER on IntegriCloud