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>
                 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);
         }
 }