Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat Make missing kern.evcnt an error, don't try t...
details: https://anonhg.NetBSD.org/src/rev/9232e9571de7
branches: trunk
changeset: 329661:9232e9571de7
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Jun 02 19:16:10 2014 +0000
description:
Make missing kern.evcnt an error, don't try to fallback to kmem use.
diffstat:
usr.bin/vmstat/vmstat.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r a079ff23dae3 -r 9232e9571de7 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Mon Jun 02 18:17:51 2014 +0000
+++ b/usr.bin/vmstat/vmstat.c Mon Jun 02 19:16:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.192 2014/05/08 08:21:53 hannken Exp $ */
+/* $NetBSD: vmstat.c,v 1.193 2014/06/02 19:16:10 joerg Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.192 2014/05/08 08:21:53 hannken Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.193 2014/06/02 19:16:10 joerg Exp $");
#endif
#endif /* not lint */
@@ -1144,10 +1144,7 @@
error = sysctl(mib, __arraycount(mib),
buf, &newlen, NULL, 0);
if (error) {
- /* if the sysctl is unknown, try groveling */
- if (error == ENOENT)
- break;
- warn("kern.evcnt");
+ err(1, "kern.evcnt");
if (buf)
free(buf);
return;
Home |
Main Index |
Thread Index |
Old Index