Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 05:58:14 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r186272 - projects/makefs
Message-ID:  <200812180558.mBI5wEih029161@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812180558.mBI5wEih029161>