mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
PCI: cleanup debug output resources
Remove outputs for 0 sized resources and indicate prefetchability. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
0e94ecd098
commit
681bf59721
1 changed files with 4 additions and 2 deletions
|
@ -536,11 +536,13 @@ static void pci_bus_dump_res(struct pci_bus *bus)
|
||||||
|
|
||||||
for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
|
for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
|
||||||
struct resource *res = bus->resource[i];
|
struct resource *res = bus->resource[i];
|
||||||
if (!res)
|
if (!res || !res->end)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
|
dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
|
||||||
(res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
|
(res->flags & IORESOURCE_IO) ? "io: " :
|
||||||
|
((res->flags & IORESOURCE_PREFETCH)? "pref mem":"mem:"),
|
||||||
|
res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue