From a1ed6115845e5b21c83510d04e225da0c82ef290 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 27 Aug 2006 18:27:49 +0000 Subject: [PATCH] Don't hard-code 3. From our secret user. --- sbin/newfs/newfs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 02d8840c5ec0..6985f8749502 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: newfs.c,v 1.92 2006/08/26 22:03:47 christos Exp $ */ +/* $NetBSD: newfs.c,v 1.93 2006/08/27 18:27:49 christos Exp $ */ /* * Copyright (c) 1983, 1989, 1993, 1994 @@ -78,7 +78,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95"; #else -__RCSID("$NetBSD: newfs.c,v 1.92 2006/08/26 22:03:47 christos Exp $"); +__RCSID("$NetBSD: newfs.c,v 1.93 2006/08/27 18:27:49 christos Exp $"); #endif #endif /* not lint */ @@ -194,6 +194,7 @@ int mfs; /* run as the memory based filesystem */ int Nflag; /* run without writing file system */ int Oflag = 1; /* format as an 4.3BSD file system */ int verbosity; /* amount of printf() output */ +#define DEFAULT_VERBOSITY 3 /* traditional behavior */ int64_t fssize; /* file system size */ int sectorsize; /* bytes/sector */ int fsize = 0; /* fragment size */ @@ -282,7 +283,7 @@ main(int argc, char *argv[]) case 'N': Nflag = 1; if (verbosity == -1) - verbosity = 3; + verbosity = DEFAULT_VERBOSITY; break; case 'O': Oflag = strsuftoi64("format", optarg, 0, 2, NULL); @@ -398,7 +399,7 @@ main(int argc, char *argv[]) if (verbosity == -1) /* Default to not showing CG info if mfs */ - verbosity = mfs ? 0 : 3; + verbosity = mfs ? 0 : DEFAULT_VERBOSITY; #ifdef MFS /* This is enough to get through the correct kernel code paths */