Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a19f5df7 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes
Browse files

PCI: use dev_printk for PCI bus resource mssages



Since pci_bus has a struct device, use dev_printk directly instead
of faking it by hand.

Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent db567943
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -536,8 +536,7 @@ 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,
		dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
			   (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
        }
}