Don't hard-code 3. From our secret user.

This commit is contained in:
christos 2006-08-27 18:27:49 +00:00
parent f61564f6ba
commit a1ed611584

View File

@ -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 */