]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
PCI: log vendor/device ID always
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 29 Sep 2010 18:23:21 +0000 (12:23 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 18 Oct 2010 03:03:05 +0000 (20:03 -0700)
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: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c

index 12625d90f8b573785f1a05a0a719fad46aa3155f..c84900da3c59249e44466d7b1e601e4f399f3293 100644 (file)
@@ -961,8 +961,8 @@ int pci_setup_device(struct pci_dev *dev)
        dev->class = class;
        class >>= 8;
 
-       dev_dbg(&dev->dev, "found [%04x:%04x] class %06x header type %02x\n",
-                dev->vendor, dev->device, class, dev->hdr_type);
+       dev_printk(KERN_DEBUG, &dev->dev, "[%04x:%04x] type %d class %#08x\n",
+                  dev->vendor, dev->device, dev->hdr_type, class);
 
        /* need to have dev->class ready */
        dev->cfg_size = pci_cfg_space_size(dev);