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: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
db5679437a
commit
a19f5df7d9
@@ -536,9 +536,8 @@ static void pci_bus_dump_res(struct pci_bus *bus)
|
|||||||
if (!res)
|
if (!res)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
printk(KERN_DEBUG "pci %04x:%02x: bus resource %d %s %pR\n",
|
dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
|
||||||
pci_domain_nr(bus), bus->number, i,
|
(res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
|
||||||
(res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user