diff options
author | sobomax <sobomax@FreeBSD.org> | 2010-03-09 19:31:08 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2010-03-09 19:31:08 +0000 |
commit | 2bd2be1b085644c3d4c9e130f2ef246a5479bb36 (patch) | |
tree | 7fa8a0c98dae0a31b5c0865a15da9e25986cbfc4 /sbin/newfs/mkfs.c | |
parent | 2536fa97ed776dd14ce8ad6a0d0fc06dfc3b8a6f (diff) | |
download | FreeBSD-src-2bd2be1b085644c3d4c9e130f2ef246a5479bb36.zip FreeBSD-src-2bd2be1b085644c3d4c9e130f2ef246a5479bb36.tar.gz |
o bdeficize expand_number_int() function;
o revert most of the recent changes (int -> int64_t conversion) by using
this functon for parsing all options.
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index ab9a9c3..6663b18 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 (%jd)\n", - sblock.fs_fsize, (intmax_t)sectorsize); + printf("increasing fragment size from %d to sector size (%d)\n", + sblock.fs_fsize, 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 %jd\n", - origdensity, (intmax_t)density); + fprintf(stderr, "density increased from %d to %d\n", + origdensity, density); } origdensity = density; for (;;) { @@ -346,9 +346,8 @@ restart: if (fragsperinode < minfragsperinode) { bsize <<= 1; fsize <<= 1; - printf("Block size too small for a file system %s %jd\n", - "of this size. Increasing blocksize to", - (intmax_t)bsize); + printf("Block size too small for a file system %s %d\n", + "of this size. Increasing blocksize to", bsize); goto restart; } minfpg = fragsperinode * INOPB(&sblock); @@ -372,8 +371,7 @@ restart: density -= sblock.fs_fsize; } if (density != origdensity) - printf("density reduced from %d to %jd\n", origdensity, - (intmax_t)density); + printf("density reduced from %d to %d\n", origdensity, density); /* * Start packing more blocks into the cylinder group until * it cannot grow any larger, the number of cylinder groups |