From: Yinghai Lu Date: Tue, 22 Dec 2009 23:02:24 +0000 (-0800) Subject: PCI: don't dump resource when bus resource flags indicates unused X-Git-Tag: MMI-PSA29.97-13-9~24895^2~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c9342b8dd1a32386fc32bffb9eedebbfe264763;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Jesse Barnes --- 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);