diff options
author | sam <sam@FreeBSD.org> | 2008-12-18 05:58:14 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-12-18 05:58:14 +0000 |
commit | fcd67893c64809577a52065df95117376cf9fb85 (patch) | |
tree | 5453c9a185c69e631fe3a496c3776f0ea77f1b2f | |
parent | edeca92a821c8016d1279de696a3ee421b8c13b0 (diff) | |
download | FreeBSD-src-fcd67893c64809577a52065df95117376cf9fb85.zip FreeBSD-src-fcd67893c64809577a52065df95117376cf9fb85.tar.gz |
turn warnx into a debug msg
-rw-r--r-- | ffs.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -368,9 +368,13 @@ ffs_validate(const char *dir, fsnode *root, fsinfo_t *fsopts) /* now check calculated sizes vs requested sizes */ if (fsopts->maxsize > 0 && size > fsopts->maxsize) { - warnx("`%s' size of %lld is larger than the maxsize of %lld; rounding down to %lld.", - dir, (long long)size, (long long)fsopts->maxsize, - rounddown(fsopts->size, fsopts->bsize)); + if (debug & DEBUG_FS_VALIDATE) { + printf("%s: `%s' size of %lld is larger than the " + "maxsize of %lld; rounding down to %lld.", + __func__, dir, (long long)size, + (long long)fsopts->maxsize, + rounddown(fsopts->size, fsopts->bsize)); + } size = rounddown(fsopts->size, fsopts->bsize); } fsopts->size = size; |