diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-04-14 03:28:54 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-04-22 23:49:25 +0200 |
commit | 681bf597215c62bd6f5ae1180a58a38997122b5b (patch) | |
tree | 92958a213d25859ced6aadf3ed13b3d0f4aa9220 /drivers/pci | |
parent | x86/PCI: set_pci_bus_resources_arch_default cleanups (diff) | |
download | linux-681bf597215c62bd6f5ae1180a58a38997122b5b.tar.xz linux-681bf597215c62bd6f5ae1180a58a38997122b5b.zip |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/setup-bus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 8d9da9d30a61..a00f85471b6e 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -536,11 +536,13 @@ static void pci_bus_dump_res(struct pci_bus *bus) for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { struct resource *res = bus->resource[i]; - if (!res) + if (!res || !res->end) continue; 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); } } |