Module Name:    src
Committed By:   snj
Date:           Mon Mar 30 16:52:18 UTC 2009

Modified Files:
        src/usr.bin/fstat [netbsd-5]: misc.c

Log Message:
Pull up following revision(s) (requested by dholland in ticket #618):
        usr.bin/fstat/misc.c: revision 1.3
only print warnings if vflg.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.6.1 src/usr.bin/fstat/misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/fstat/misc.c
diff -u src/usr.bin/fstat/misc.c:1.2 src/usr.bin/fstat/misc.c:1.2.6.1
--- src/usr.bin/fstat/misc.c:1.2	Wed Jul 23 11:59:43 2008
+++ src/usr.bin/fstat/misc.c	Mon Mar 30 16:52:18 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: misc.c,v 1.2 2008/07/23 11:59:43 christos Exp $	*/
+/*	$NetBSD: misc.c,v 1.2.6.1 2009/03/30 16:52:18 snj Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: misc.c,v 1.2 2008/07/23 11:59:43 christos Exp $");
+__RCSID("$NetBSD: misc.c,v 1.2.6.1 2009/03/30 16:52:18 snj Exp $");
 
 #include <stdbool.h>
 #include <sys/param.h>
@@ -77,6 +77,8 @@
     { .n_name = NULL }
 };
 
+extern int vflg;
+
 
 static int
 p_bpf(struct file *f)
@@ -143,7 +145,7 @@
 		if ((n = KVM_NLIST(nl)) == -1)
 			errx(1, "Cannot list kernel symbols (%s)",
 			    KVM_GETERR());
-		else if (n != 0)
+		else if (n != 0 && vflg)
 			warnx("Could not find %d symbols", n);
 	}
 	for (i = 0; i < NL_MAX; i++)

Reply via email to