From fcd67893c64809577a52065df95117376cf9fb85 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 18 Dec 2008 05:58:14 +0000 Subject: [PATCH] turn warnx into a debug msg --- ffs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ffs.c b/ffs.c index 5fb0d976cd3e..faf3f8307b18 100644 --- a/ffs.c +++ b/ffs.c @@ -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;