diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-12-22 18:02:24 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 19:17:00 -0500 |
commit | 7c9342b8dd1a32386fc32bffb9eedebbfe264763 (patch) | |
tree | 5e1e96a1f9bd0808ec3ded0a0cfbf6cf6917eff0 /drivers/pci/setup-bus.c | |
parent | 5eeec0ec931a01e85b3701ce121b7d8a1800ec60 (diff) |
PCI: don't dump resource when bus resource flags indicates unused
Don't print out resources without flags to avoid cluttering up the debug
output.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r-- | drivers/pci/setup-bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 1bd41ac2abd9..52fbd426a1c7 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
@@ -610,7 +610,8 @@ static void pci_bus_dump_res(struct pci_bus *bus) | |||
610 | 610 | ||
611 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { | 611 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { |
612 | struct resource *res = bus->resource[i]; | 612 | struct resource *res = bus->resource[i]; |
613 | if (!res || !res->end) | 613 | |
614 | if (!res || !res->end || !res->flags) | ||
614 | continue; | 615 | continue; |
615 | 616 | ||
616 | dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); | 617 | dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); |