diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-12-23 00:02:24 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-23 01:17:00 +0100 |
commit | 7c9342b8dd1a32386fc32bffb9eedebbfe264763 (patch) | |
tree | 5e1e96a1f9bd0808ec3ded0a0cfbf6cf6917eff0 /drivers | |
parent | resource: add release_child_resources (diff) | |
download | linux-7c9342b8dd1a32386fc32bffb9eedebbfe264763.tar.xz linux-7c9342b8dd1a32386fc32bffb9eedebbfe264763.zip |
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')
-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) for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { struct resource *res = bus->resource[i]; - if (!res || !res->end) + + if (!res || !res->end || !res->flags) continue; dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); |