Date: Tue, 1 May 2001 17:30:44 +0400 (MSD) From: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/27010: kbdcontrol(1) gives wrong usage info Message-ID: <200105011330.f41DUiH00735@kapran.bitmcnit.bryansk.su>
next in thread | raw e-mail | index | archive | help
>Number: 27010
>Category: bin
>Synopsis: kbdcontrol(1) gives wrong usage info
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 01 06:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Alex Kapranoff
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
Inner Mongolia
>Environment:
System: FreeBSD kapran.bitmcnit.bryansk.su 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Tue May 1 14:50:52 MSD 2001 root@kapran.bitmcnit.bryansk.su:/usr/src/sys/compile/KAPRAN i386
>Description:
Everything is pretty obvious from the patch. It just
syncronizes command line syntax warnings with manpage.
I lowercased "DURATION.PITCH" to match manpage and removed stray space
in usage() output while I'm here.
>How-To-Repeat:
>Fix:
--- /usr/src/usr.sbin/kbdcontrol/kbdcontrol.c Mon Mar 12 10:18:30 2001
+++ kbdcontrol.c Tue May 1 17:19:24 2001
@@ -888,7 +888,7 @@
pitch = strtol(opt, &v1, 0);
if ((pitch < 0) || (*opt == '\0') || (*v1 != '\0')) {
badopt:
- warnx("argument to -b must be DURATION.PITCH");
+ warnx("argument to -b must be duration.pitch or [quiet.]visual|normal|off");
return;
}
if (pitch != 0)
@@ -930,7 +930,7 @@
repeat = strtol(opt, &v1, 0);
if ((repeat < 0) || (*opt == '\0') || (*v1 != '\0')) {
badopt:
- warnx("argument to -r must be delay.repeat");
+ warnx("argument to -r must be delay.repeat or slow|normal|fast");
return;
}
for (n = 0; n < ndelays - 1; n++)
@@ -1065,7 +1065,7 @@
usage()
{
fprintf(stderr, "%s\n%s\n%s\n",
-"usage: kbdcontrol [-dFKix] [-b duration.pitch | [quiet.]belltype]",
+"usage: kbdcontrol [-dFKix] [-b duration.pitch | [quiet.]belltype]",
" [-r delay.repeat | speed] [-l mapfile] [-f # string]",
" [-h size] [-k device] [-L mapfile]");
exit(1);
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105011330.f41DUiH00735>
