Commit 2c6413ae authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes

PCI: log vendor/device ID always

Previously we had to have CONFIG_PCI_DEBUG=y or CONFIG_DYNAMIC_DEBUG=y
to turn on this printk, but I think the IDs are valuable enough that it's
worth putting them in the log always.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent cb04e95b
...@@ -961,8 +961,8 @@ int pci_setup_device(struct pci_dev *dev) ...@@ -961,8 +961,8 @@ int pci_setup_device(struct pci_dev *dev)
dev->class = class; dev->class = class;
class >>= 8; class >>= 8;
dev_dbg(&dev->dev, "found [%04x:%04x] class %06x header type %02x\n", dev_printk(KERN_DEBUG, &dev->dev, "[%04x:%04x] type %d class %#08x\n",
dev->vendor, dev->device, class, dev->hdr_type); dev->vendor, dev->device, dev->hdr_type, class);
/* need to have dev->class ready */ /* need to have dev->class ready */
dev->cfg_size = pci_cfg_space_size(dev); dev->cfg_size = pci_cfg_space_size(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment