lkml.org 
[lkml]   [2009]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 04/14] pci: don't dump it when bus resource flags is not used
    mean it is not used, so skip it.

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    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 7d6d393..e538fa1 100644
    --- a/drivers/pci/setup-bus.c
    +++ b/drivers/pci/setup-bus.c
    @@ -703,7 +703,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);
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2009-12-23 00:07    [W:0.032 / U:90.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site