patch-2.3.39 linux/drivers/pci/proc.c

Next file: linux/drivers/pcmcia/cardbus.c
Previous file: linux/drivers/pci/pcisyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/drivers/pci/proc.c linux/drivers/pci/proc.c
@@ -224,6 +224,7 @@
 
 	cnt = 0;
 	pci_for_each_dev(dev) {
+		struct pci_driver *drv = pci_dev_driver(dev);
 		len = sprintf(buf, "%02x%02x\t%04x%04x\t%x",
 			dev->bus->number,
 			dev->devfn,
@@ -237,6 +238,9 @@
 		for(i=0; i<7; i++)
 			len += sprintf(buf+len, LONG_FORMAT, dev->resource[i].start < dev->resource[i].end ?
 				       dev->resource[i].end - dev->resource[i].start + 1 : 0);
+		buf[len++] = '\t';
+		if (drv)
+			len += sprintf(buf+len, "%s", drv->name);
 		buf[len++] = '\n';
 		at += len;
 		if (at >= pos) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)