Module Name: src
Committed By: jmcneill
Date: Fri Feb 25 21:40:48 UTC 2011
Modified Files:
src/usr.sbin/pcictl: pcictl.8 pcictl.c
Log Message:
make pcictl pci0 list dump all busses by default, unless a bus number is
specified with -b
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/pcictl/pcictl.8
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/pcictl/pcictl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/pcictl/pcictl.8
diff -u src/usr.sbin/pcictl/pcictl.8:1.9 src/usr.sbin/pcictl/pcictl.8:1.10
--- src/usr.sbin/pcictl/pcictl.8:1.9 Fri Feb 25 14:11:25 2011
+++ src/usr.sbin/pcictl/pcictl.8 Fri Feb 25 21:40:48 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: pcictl.8,v 1.9 2011/02/25 14:11:25 wiz Exp $
+.\" $NetBSD: pcictl.8,v 1.10 2011/02/25 21:40:48 jmcneill Exp $
.\"
.\" Copyright 2001 Wasabi Systems, Inc.
.\" All rights reserved.
@@ -65,10 +65,7 @@
is given, as numbers.
The bus, device, and function
numbers may be specified by flags.
-If the bus is not specified, it defaults to the bus number of the
-PCI bus specified on the command line.
-If the bus is \-1, devices on all busses are listed.
-Any other locator not specified defaults
+Any locator not specified defaults
to a wildcard, or may be explicitly wildcarded by specifying
.Dq any .
.Pp
Index: src/usr.sbin/pcictl/pcictl.c
diff -u src/usr.sbin/pcictl/pcictl.c:1.16 src/usr.sbin/pcictl/pcictl.c:1.17
--- src/usr.sbin/pcictl/pcictl.c:1.16 Sat Jul 4 20:34:23 2009
+++ src/usr.sbin/pcictl/pcictl.c Fri Feb 25 21:40:48 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pcictl.c,v 1.16 2009/07/04 20:34:23 cegger Exp $ */
+/* $NetBSD: pcictl.c,v 1.17 2011/02/25 21:40:48 jmcneill Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -159,7 +159,7 @@
int bus, dev, func;
int ch;
- bus = pci_businfo.busno;
+ bus = -1;
dev = func = -1;
while ((ch = getopt(argc, argv, "nb:d:f:")) != -1) {