if (thisboard->bustype == isa_bustype) {
printk("(base %#lx) ", iobase);
} else {
- printk("(pci %02x:%02x.%x) ", pci_dev->bus->number,
- PCI_SLOT(pci_dev->devfn),
- PCI_FUNC(pci_dev->devfn));
+ printk("(pci %s) ", pci_name(pci_dev));
}
if (irq) {
printk("(irq %u%s) ", irq, (dev->irq ? "" : " UNAVAILABLE"));
if (thisboard->bustype == isa_bustype) {
printk("(base %#lx) ", iobase);
} else {
- printk("(pci %02x:%02x.%x) ", pci_dev->bus->number,
- PCI_SLOT(pci_dev->devfn),
- PCI_FUNC(pci_dev->devfn));
+ printk("(pci %s) ", pci_name(pci_dev));
}
if (irq) {
printk("(irq %u%s) ", irq, (dev->irq ? "" : " UNAVAILABLE"));
if (thisboard->bustype == isa_bustype) {
printk("(base %#lx) ", iobase);
} else {
- printk("(pci %02x:%02x.%x) ", pci_dev->bus->number,
- PCI_SLOT(pci_dev->devfn),
- PCI_FUNC(pci_dev->devfn));
+ printk("(pci %s) ", pci_name(pci_dev));
}
printk("attached\n");
}
printk(KERN_INFO "comedi%d: %s ", dev->minor, dev->board_name);
- printk("(pci %02x:%02x.%x) ", pci_dev->bus->number,
- PCI_SLOT(pci_dev->devfn),
- PCI_FUNC(pci_dev->devfn));
+ printk("(pci %s) ", pci_name(pci_dev));
if (irq) {
printk("(irq %u%s) ", irq, (dev->irq ? "" : " UNAVAILABLE"));
} else {