Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vmstat use warn instead of perror.



details:   https://anonhg.NetBSD.org/src/rev/a546b1fe5ed1
branches:  trunk
changeset: 770408:a546b1fe5ed1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 15 21:59:48 2011 +0000

description:
use warn instead of perror.

diffstat:

 usr.bin/vmstat/vmstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 559b94206f84 -r a546b1fe5ed1 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Sat Oct 15 21:43:19 2011 +0000
+++ b/usr.bin/vmstat/vmstat.c   Sat Oct 15 21:59:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.185 2011/10/15 21:06:05 christos Exp $ */
+/* $NetBSD: vmstat.c,v 1.186 2011/10/15 21:59:48 christos 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.185 2011/10/15 21:06:05 christos Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.186 2011/10/15 21:59:48 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1153,7 +1153,7 @@
                                /* if the sysctl is unknown, try groveling */
                                if (error == ENOENT)
                                        break;
-                               perror("sysctl: kern.evcnt");
+                               warn("kern.evcnt");
                                if (buf)
                                        free(buf);
                                return;



Home | Main Index | Thread Index | Old Index