diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-29 20:42:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-29 20:42:51 +0000 |
commit | 9a04a43e3ffadee008b420b016c890d76fbcd289 (patch) | |
tree | 3c96dc49384f6e25a90738c2f2d3039450686197 /usr.sbin/kvm_mkdb | |
parent | 79ff871fcebda110c297ce840b6b3cfe90c07fbc (diff) |
Only print "already up to date" if in verbose mode
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r-- | usr.sbin/kvm_mkdb/kvm_mkdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c index ddbb657d900..6f4ae34965f 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.c +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_mkdb.c,v 1.8 1999/03/24 05:25:55 millert Exp $ */ +/* $OpenBSD: kvm_mkdb.c,v 1.9 1999/03/29 20:42:50 millert Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "from: @(#)kvm_mkdb.c 8.3 (Berkeley) 5/4/95"; #else -static char *rcsid = "$OpenBSD: kvm_mkdb.c,v 1.8 1999/03/24 05:25:55 millert Exp $"; +static char *rcsid = "$OpenBSD: kvm_mkdb.c,v 1.9 1999/03/29 20:42:50 millert Exp $"; #endif #endif /* not lint */ @@ -149,10 +149,10 @@ kvm_mkdb(fd, nlistpath, nlistname, verbose) /* If the existing db file matches the currently running kernel, exit */ if (testdb(dbname)) { - warnx("%s already up to date", dbname); + if (verbose) + warnx("%s already up to date", dbname); return(0); - } - else if (verbose) + } else if (verbose) warnx("rebuilding %s", dbname); (void)umask(0); |