diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-06-05 15:20:38 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-06-05 15:20:38 +0000 |
commit | 44e2d3c808e39707533afd5cda82710f86c4a6c2 (patch) | |
tree | 36ad6368fa741f35b780b16aea079e4ba96ee5f2 /sbin/newfs/mkfs.c | |
parent | da5305624c428e5cb1c29c01508b3a0bc6eaefa0 (diff) |
fix format string
ok dcoppa@ otto@
also reviewed by Vadim Zhukov
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index b211fa555bb..476bdfb3214 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkfs.c,v 1.75 2011/05/23 10:56:17 dcoppa Exp $ */ +/* $OpenBSD: mkfs.c,v 1.76 2011/06/05 15:20:37 chl Exp $ */ /* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */ /* @@ -217,7 +217,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo, mode_t mfsmode, fsize); } if (fsize < sectorsize) { - errx(18, "fragment size %d is too small, minimum is %d", + errx(18, "fragment size %d is too small, minimum is %lld", fsize, sectorsize); } if (bsize < MINBSIZE) { @@ -488,7 +488,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo, mode_t mfsmode, */ if (!mfs) { #define B2MBFACTOR (1 / (1024.0 * 1024.0)) - printf("%s: %.1fMB in %jd sectors of %d bytes\n", fsys, + printf("%s: %.1fMB in %jd sectors of %lld bytes\n", fsys, (float)sblock.fs_size * sblock.fs_fsize * B2MBFACTOR, (intmax_t)fsbtodb(&sblock, sblock.fs_size), sectorsize); printf("%d cylinder groups of %.2fMB, %d blocks, %d" |