Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/kgmon usage: Add -d. Use getprogname().



details:   https://anonhg.NetBSD.org/src/rev/47abaeaf5263
branches:  trunk
changeset: 571318:47abaeaf5263
user:      hira <hira%NetBSD.org@localhost>
date:      Wed Nov 17 13:32:16 2004 +0000

description:
usage: Add -d.  Use getprogname().
Reviewed by uebayasi@.  This closes PR bin/26685.

diffstat:

 usr.sbin/kgmon/kgmon.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 90d59e10e52f -r 47abaeaf5263 usr.sbin/kgmon/kgmon.c
--- a/usr.sbin/kgmon/kgmon.c    Wed Nov 17 13:28:31 2004 +0000
+++ b/usr.sbin/kgmon/kgmon.c    Wed Nov 17 13:32:16 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kgmon.c,v 1.13 2003/08/07 11:25:22 agc Exp $   */
+/*     $NetBSD: kgmon.c,v 1.14 2004/11/17 13:32:16 hira Exp $  */
 
 /*
  * Copyright (c) 1983, 1992, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "from: @(#)kgmon.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: kgmon.c,v 1.13 2003/08/07 11:25:22 agc Exp $");
+__RCSID("$NetBSD: kgmon.c,v 1.14 2004/11/17 13:32:16 hira Exp $");
 #endif
 #endif /* not lint */
 
@@ -126,7 +126,8 @@
 
                default:
                        (void)fprintf(stderr,
-                           "usage: kgmon [-bhrp] [-M core] [-N system]\n");
+                           "usage: %s [-bdhrp] [-M core] [-N system]\n",
+                           getprogname());
                        exit(1);
                }
        }



Home | Main Index | Thread Index | Old Index