svn commit: r186272 - projects/makefs

Sam Leffler sam at FreeBSD.org
Wed Dec 17 21:58:15 PST 2008


Author: sam
Date: Thu Dec 18 05:58:14 2008
New Revision: 186272
URL: http://svn.freebsd.org/changeset/base/186272

Log:
  turn warnx into a debug msg

Modified:
  projects/makefs/ffs.c

Modified: projects/makefs/ffs.c
==============================================================================
--- projects/makefs/ffs.c	Thu Dec 18 05:55:26 2008	(r186271)
+++ projects/makefs/ffs.c	Thu Dec 18 05:58:14 2008	(r186272)
@@ -368,9 +368,13 @@ ffs_validate(const char *dir, fsnode *ro
 
 		/* 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;


More information about the svn-src-projects mailing list