summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-02 17:59:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-02 17:59:11 +0000
commitec5ed5c757bfdb5a1802727da305911d82984730 (patch)
treeb61c4e5358be71578a1f47916740d750c0f924ba
parent0049e8de2ee68857fbe349c002c555a3317e520d (diff)
PCI devices are specified by bus:dev:func, not dev:bus:func. Adjust usage
and man page.
-rw-r--r--usr.sbin/pcidump/pcidump.810
-rw-r--r--usr.sbin/pcidump/pcidump.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/pcidump/pcidump.8 b/usr.sbin/pcidump/pcidump.8
index 5c0d8992c39..e80e4f34bf7 100644
--- a/usr.sbin/pcidump/pcidump.8
+++ b/usr.sbin/pcidump/pcidump.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pcidump.8,v 1.5 2007/11/18 19:48:16 jmc Exp $
+.\" $OpenBSD: pcidump.8,v 1.6 2008/03/02 17:59:10 kettenis Exp $
.\"
.\" Copyright (c) 2007 Paul de Weerd <weerd@weirdnet.nl>
.\"
@@ -14,7 +14,7 @@
.\" TORTIOUS ACTION, ARISING OUT OF
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 18 2007 $
+.Dd $Mdocdate: March 2 2008 $
.Dt PCIDUMP 8
.Os
.Sh NAME
@@ -25,7 +25,7 @@
.Op Fl v | x | xx
.Op Fl d Ar pcidev
.Sm off
-.Op Ar dev : bus : func
+.Op Ar bus : dev : func
.Sm on
.Sh DESCRIPTION
The
@@ -34,9 +34,9 @@ utility displays the device address, vendor, and product name
of PCI devices.
When no arguments are given,
information on all PCI devices in the system is shown;
-otherwise a single device may be specified by device, bus, and function:
+otherwise a single device may be specified by bus, device, and function:
.Sm off
-.Ar dev : bus : func .
+.Ar bus : dev : func .
.Sm on
.Pp
The options are as follows:
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c
index c5437d2bfef..5228cde0c29 100644
--- a/usr.sbin/pcidump/pcidump.c
+++ b/usr.sbin/pcidump/pcidump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcidump.c,v 1.11 2007/11/20 13:56:36 chl Exp $ */
+/* $OpenBSD: pcidump.c,v 1.12 2008/03/02 17:59:10 kettenis Exp $ */
/*
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
@@ -45,7 +45,7 @@ usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-v|-x|-xx] [-d pcidev] [dev:bus:func]\n",
+ fprintf(stderr, "usage: %s [-v|-x|-xx] [-d pcidev] [bus:dev:func]\n",
__progname);
exit(1);
}