summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-04-14 06:10:01 +0000
committerimp <imp@FreeBSD.org>2000-04-14 06:10:01 +0000
commit212803777e16b9fe9d5c92e839ece868ac93b66b (patch)
tree91954c7db21a6d2dc68919b358c26fcbb0c178e6 /sbin
parentec1733ae3b86f2412bcf10ad8950409b36493a1b (diff)
downloadFreeBSD-src-212803777e16b9fe9d5c92e839ece868ac93b66b.zip
FreeBSD-src-212803777e16b9fe9d5c92e839ece868ac93b66b.tar.gz
Better error message for a case that I hit.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index 926f0ee..a51c5cd 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -520,7 +520,8 @@ main(int argc, char *argv[])
warnx("warning: sectors/FAT limits file system to %u clusters",
cls);
if (cls < mincls(fat))
- errx(1, "too few clusters for FAT%u", fat);
+ errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat,
+ mincls(fat));
if (cls > maxcls(fat)) {
cls = maxcls(fat);
bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;
OpenPOWER on IntegriCloud