diff options
author | imp <imp@FreeBSD.org> | 2000-04-14 06:10:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-04-14 06:10:01 +0000 |
commit | 212803777e16b9fe9d5c92e839ece868ac93b66b (patch) | |
tree | 91954c7db21a6d2dc68919b358c26fcbb0c178e6 /sbin | |
parent | ec1733ae3b86f2412bcf10ad8950409b36493a1b (diff) | |
download | FreeBSD-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.c | 3 |
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; |