From owner-freebsd-bugs Tue May 1 6:50: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D189937B43C for ; Tue, 1 May 2001 06:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f41Do1U83176; Tue, 1 May 2001 06:50:01 -0700 (PDT) (envelope-from gnats) Received: from rbn-gw.bgtu.debryansk.ru (rbn-gw.bgtu.debryansk.ru [62.76.89.2]) by hub.freebsd.org (Postfix) with ESMTP id EC49C37B422 for ; Tue, 1 May 2001 06:40:07 -0700 (PDT) (envelope-from alex@kapran.bitmcnit.bryansk.su) Received: from server.bitmcnit.bryansk.su (root@bitmcnit.bryansk.su [192.168.121.2]) by rbn-gw.bgtu.debryansk.ru (8.11.2/8.11.2) with ESMTP id f41Dccm09157 for ; Tue, 1 May 2001 17:38:38 +0400 Received: (from uucp@localhost) by server.bitmcnit.bryansk.su (8.9.3/8.9.3) with UUCP id RAA22555 for FreeBSD-gnats-submit@freebsd.org; Tue, 1 May 2001 17:29:31 +0400 Received: (from alex@localhost) by kapran.bitmcnit.bryansk.su (8.11.3/8.11.3) id f41DUiH00735; Tue, 1 May 2001 17:30:44 +0400 (MSD) (envelope-from alex) Message-Id: <200105011330.f41DUiH00735@kapran.bitmcnit.bryansk.su> Date: Tue, 1 May 2001 17:30:44 +0400 (MSD) From: Alex Kapranoff Reply-To: alex@kapran.bitmcnit.bryansk.su To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/27010: kbdcontrol(1) gives wrong usage info Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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