]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PCI: use dev_printk for PCI bus resource mssages
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 18 Dec 2008 23:34:19 +0000 (16:34 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:19 +0000 (11:13 -0800)
Since pci_bus has a struct device, use dev_printk directly instead
of faking it by hand.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/setup-bus.c

index 09e2c3cd2bef72ac83a8128a4f24bc32ff4e83e1..7046089457805bea53eb9efdce66a4c13f41f018 100644 (file)
@@ -536,9 +536,8 @@ static void pci_bus_dump_res(struct pci_bus *bus)
                 if (!res)
                         continue;
 
-               printk(KERN_DEBUG "pci %04x:%02x: bus resource %d %s %pR\n",
-                      pci_domain_nr(bus), bus->number, i,
-                      (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
+               dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
+                          (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
         }
 }