summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2002-09-17 18:10:39 +0000
committerjdp <jdp@FreeBSD.org>2002-09-17 18:10:39 +0000
commit1db483ab8cffc00036fc5bb76b9bbb924c39a4e8 (patch)
tree5849b30a862177990a4c44056e8dd9010b8cd3dc /usr.sbin/pciconf
parente25a8d33e2fa800c3a9232bd96274503a7c005a9 (diff)
downloadFreeBSD-src-1db483ab8cffc00036fc5bb76b9bbb924c39a4e8.zip
FreeBSD-src-1db483ab8cffc00036fc5bb76b9bbb924c39a4e8.tar.gz
Use consistent terminology in the usage message, the man page
synopsis, and the man page description ("selector" vs. "sel" and "addr" vs. "reg"). Fix the usage message and man page synopsis to show that the "value" argument is not optional.
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r--usr.sbin/pciconf/pciconf.814
-rw-r--r--usr.sbin/pciconf/pciconf.c6
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/pciconf/pciconf.8 b/usr.sbin/pciconf/pciconf.8
index c44d564..ec419a8 100644
--- a/usr.sbin/pciconf/pciconf.8
+++ b/usr.sbin/pciconf/pciconf.8
@@ -34,11 +34,11 @@
.Nm
.Fl l Op Fl v
.Nm
-.Fl a Ar sel
+.Fl a Ar selector
.Nm
-.Fl r Oo Fl b | h Oc Ar sel addr Ns Op : Ns Ar addr
+.Fl r Oo Fl b | h Oc Ar selector addr Ns Op : Ns Ar addr2
.Nm
-.Fl w Oo Fl b | h Oc Ar sel addr Op Ar value
+.Fl w Oo Fl b | h Oc Ar selector addr value
.Sh DESCRIPTION
The
.Nm
@@ -138,19 +138,19 @@ non-zero indicates that it does not.
The
.Fl r
option reads a configuration space register at byte offset
-.Ar reg
+.Ar addr
of device
.Ar selector
and prints out its value in hexadecimal.
-The optional second
-.Ar reg2
+The optional second address
+.Ar addr2
specifies a range to read.
The
.Fl w
option writes the
.Ar value
into a configuration space register at byte offset
-.Ar reg
+.Ar addr
of device
.Ar selector .
For both operations, the flags
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
index 6a18b6d..764fd3d 100644
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -80,9 +80,9 @@ usage()
{
fprintf(stderr, "%s\n%s\n%s\n%s\n",
"usage: pciconf -l [-v]",
- " pciconf -a sel",
- " pciconf -r [-b | -h] sel addr[:addr]",
- " pciconf -w [-b | -h] sel addr [value]");
+ " pciconf -a selector",
+ " pciconf -r [-b | -h] selector addr[:addr2]",
+ " pciconf -w [-b | -h] selector addr value");
exit (1);
}
OpenPOWER on IntegriCloud