Subject: bin/26685: missing option in the usage of kgmon(8)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 08/16/2004 19:34:52
>Number:         26685
>Category:       bin
>Synopsis:       missing option in the usage of kgmon(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 16 10:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #65: Mon Aug 16 16:26:09 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	-d is missing in the usage of kgmon(8).

>How-To-Repeat:
	
>Fix:
	* add -d to usage
	* use getprogname()

Index: usr.sbin/kgmon/kgmon.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.sbin/kgmon/kgmon.c,v
retrieving revision 1.13
diff -u -r1.13 kgmon.c
--- usr.sbin/kgmon/kgmon.c	7 Aug 2003 11:25:22 -0000	1.13
+++ usr.sbin/kgmon/kgmon.c	16 Aug 2004 09:59:32 -0000
@@ -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);
 		}
 	}

>Release-Note:
>Audit-Trail:
>Unformatted: