Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/fwctl Sync usage with man page. Use getprogname().



details:   https://anonhg.NetBSD.org/src/rev/91c405203577
branches:  trunk
changeset: 582947:91c405203577
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Jul 12 09:10:18 2005 +0000

description:
Sync usage with man page. Use getprogname().

diffstat:

 usr.sbin/fwctl/fwcontrol.c |  29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diffs (47 lines):

diff -r 940e7320d25b -r 91c405203577 usr.sbin/fwctl/fwcontrol.c
--- a/usr.sbin/fwctl/fwcontrol.c        Tue Jul 12 09:05:35 2005 +0000
+++ b/usr.sbin/fwctl/fwcontrol.c        Tue Jul 12 09:10:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fwcontrol.c,v 1.1 2005/07/11 15:35:25 kiyohara Exp $   */
+/*     $NetBSD: fwcontrol.c,v 1.2 2005/07/12 09:10:18 wiz Exp $        */
 /*
  * Copyright (C) 2002
  *     Hidetoshi Shimokawa. All rights reserved.
@@ -74,22 +74,25 @@
 usage(void)
 {
        fprintf(stderr,
-               "fwctl [-u bus_num] [-rt] [-g gap_count] [-o node] "
-                   "[-b pri_req] [-c node] [-d node] [-l file] "
-                   "[-R file] [-S file] [-m target]\n"
-               "\t-u: specify bus number\n"
-               "\t-g: broadcast gap_count by phy_config packet\n"
-               "\t-o: send link-on packet to the node\n"
-               "\t-s: write RESET_START register on the node\n"
+               "%s [-prt] [-b pri_req] [-c node] [-d node]"
+               " [-g gap_count] [-l file]\n"
+               "\t[-m EUI64 | hostname] [-o node] [-R filename]"
+               " [-S filename]\n"
+               "\t[-s node] [-u bus_num]\n"
                "\t-b: set PRIORITY_BUDGET register on all supported nodes\n"
                "\t-c: read configuration ROM\n"
-               "\t-r: bus reset\n"
-               "\t-t: read topology map\n"
                "\t-d: hex dump of configuration ROM\n"
+               "\t-g: broadcast gap_count by phy_config packet\n"
                "\t-l: load and parse hex dump file of configuration ROM\n"
-               "\t-R: Receive DV stream\n"
-               "\t-S: Send DV stream\n"
-               "\t-m: set fwmem target\n");
+               "\t-m: set fwmem target\n"
+               "\t-o: send link-on packet to the node\n"
+               "\t-p: dump PHY registers\n"
+               "\t-R: receive DV stream\n"
+               "\t-r: bus reset\n"
+               "\t-S: send DV stream\n"
+               "\t-s: write RESET_START register on the node\n"
+               "\t-t: read topology map\n"
+               "\t-u: specify bus number\n", getprogname());
        exit(0);
 }
 



Home | Main Index | Thread Index | Old Index