diff options
author | imp <imp@FreeBSD.org> | 2010-03-03 21:53:25 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-03-03 21:53:25 +0000 |
commit | a4f48400997877d56df1f80449f2b44f8e014066 (patch) | |
tree | 18bfa49a600ca56455a2f67a9a2d35a3ead553a7 /sbin/newfs | |
parent | 17cf51b0bb72fa08f25c8a9d75cc5ea8bafbe411 (diff) | |
download | FreeBSD-src-a4f48400997877d56df1f80449f2b44f8e014066.zip FreeBSD-src-a4f48400997877d56df1f80449f2b44f8e014066.tar.gz |
Cast these to intmax_t before printing to fix build bustage. Better
solutions welcome.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/mkfs.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 6663b18..ab9a9c3 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -191,8 +191,8 @@ restart: exit(17); } if (sblock.fs_fsize < sectorsize) { - printf("increasing fragment size from %d to sector size (%d)\n", - sblock.fs_fsize, sectorsize); + printf("increasing fragment size from %d to sector size (%jd)\n", + sblock.fs_fsize, (intmax_t)sectorsize); sblock.fs_fsize = sectorsize; } if (sblock.fs_bsize > MAXBSIZE) { @@ -337,8 +337,8 @@ restart: } else if (density < minfragsperinode * fsize) { origdensity = density; density = minfragsperinode * fsize; - fprintf(stderr, "density increased from %d to %d\n", - origdensity, density); + fprintf(stderr, "density increased from %d to %jd\n", + origdensity, (intmax_t)density); } origdensity = density; for (;;) { @@ -346,8 +346,9 @@ restart: if (fragsperinode < minfragsperinode) { bsize <<= 1; fsize <<= 1; - printf("Block size too small for a file system %s %d\n", - "of this size. Increasing blocksize to", bsize); + printf("Block size too small for a file system %s %jd\n", + "of this size. Increasing blocksize to", + (intmax_t)bsize); goto restart; } minfpg = fragsperinode * INOPB(&sblock); @@ -371,7 +372,8 @@ restart: density -= sblock.fs_fsize; } if (density != origdensity) - printf("density reduced from %d to %d\n", origdensity, density); + printf("density reduced from %d to %jd\n", origdensity, + (intmax_t)density); /* * Start packing more blocks into the cylinder group until * it cannot grow any larger, the number of cylinder groups |