summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-09-05 00:32:19 +0000
committerpeter <peter@FreeBSD.org>2000-09-05 00:32:19 +0000
commit7fafcfea9c4a3585156c89908a2fa089be8134d7 (patch)
treed37536b05c92b6e2c8b44f2c50ecea425cc252dd /sys/pci/pci.c
parent04da9a4b5ecf12cafa211d3f28aec645650008e4 (diff)
downloadFreeBSD-src-7fafcfea9c4a3585156c89908a2fa089be8134d7.zip
FreeBSD-src-7fafcfea9c4a3585156c89908a2fa089be8134d7.tar.gz
When dumping the 'found devices' list in verbose mode, actually show the
bus/slot/function numbers. The old PCI code used other markers or something, but without it here under the new pci code it is very hard to tell which device is which (this only affects bootverbose mode).
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r--sys/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 49b4611..07c8cd8 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -904,6 +904,8 @@ pci_print_verbose(struct pci_devinfo *dinfo)
printf("found->\tvendor=0x%04x, dev=0x%04x, revid=0x%02x\n",
cfg->vendor, cfg->device, cfg->revid);
+ printf("\tbus=%d, slot=%d, func=%d\n",
+ cfg->bus, cfg->slot, cfg->func);
printf("\tclass=%02x-%02x-%02x, hdrtype=0x%02x, mfdev=%d\n",
cfg->baseclass, cfg->subclass, cfg->progif,
cfg->hdrtype, cfg->mfdev);
OpenPOWER on IntegriCloud