lkml.org 
[lkml]   [2008]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/6] pci: using printk(KERN_PCI v3
    Date
    v2: use printk(KERN_DEBUG KERN_PCI ...
    v3: fix checkpatch error and warning

    Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

    ---
    drivers/pci/probe.c | 28 +++++++++++++++++-----------
    1 file changed, 17 insertions(+), 11 deletions(-)

    Index: linux-2.6/drivers/pci/probe.c
    ===================================================================
    --- linux-2.6.orig/drivers/pci/probe.c
    +++ linux-2.6/drivers/pci/probe.c
    @@ -304,7 +304,8 @@ static int __pci_read_base(struct pci_de
    } else {
    res->start = l64;
    res->end = l64 + sz64;
    - printk(KERN_DEBUG "PCI: %s reg %x 64bit mmio: [%llx, %llx]\n",
    + printk(KERN_DEBUG KERN_PCI
    + "PCI: %s reg %x 64bit mmio: [%llx, %llx]\n",
    pci_name(dev), pos, res->start, res->end);
    }
    } else {
    @@ -315,9 +316,10 @@ static int __pci_read_base(struct pci_de

    res->start = l;
    res->end = l + sz;
    - printk(KERN_DEBUG "PCI: %s reg %x %s: [%llx, %llx]\n", pci_name(dev),
    - pos, (res->flags & IORESOURCE_IO) ? "io port":"32bit mmio",
    - res->start, res->end);
    + printk(KERN_DEBUG KERN_PCI "PCI: %s reg %x %s: [%llx, %llx]\n",
    + pci_name(dev), pos,
    + (res->flags & IORESOURCE_IO) ? "io port" : "32bit mmio",
    + res->start, res->end);
    }

    out:
    @@ -388,8 +390,9 @@ void __devinit pci_read_bridge_bases(str
    res->start = base;
    if (!res->end)
    res->end = limit + 0xfff;
    - printk(KERN_DEBUG "PCI: bridge %s io port: [%llx, %llx]\n",
    - pci_name(dev), res->start, res->end);
    + printk(KERN_DEBUG KERN_PCI
    + "PCI: bridge %s io port: [%llx, %llx]\n",
    + pci_name(dev), res->start, res->end);
    }

    res = child->resource[1];
    @@ -401,8 +404,9 @@ void __devinit pci_read_bridge_bases(str
    res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM;
    res->start = base;
    res->end = limit + 0xfffff;
    - printk(KERN_DEBUG "PCI: bridge %s 32bit mmio: [%llx, %llx]\n",
    - pci_name(dev), res->start, res->end);
    + printk(KERN_DEBUG KERN_PCI
    + "PCI: bridge %s 32bit mmio: [%llx, %llx]\n",
    + pci_name(dev), res->start, res->end);
    }

    res = child->resource[2];
    @@ -438,9 +442,11 @@ void __devinit pci_read_bridge_bases(str
    res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH;
    res->start = base;
    res->end = limit + 0xfffff;
    - printk(KERN_DEBUG "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n",
    - pci_name(dev), (res->flags & PCI_PREF_RANGE_TYPE_64)?"64":"32",
    - res->start, res->end);
    + printk(KERN_DEBUG KERN_PCI
    + "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n",
    + pci_name(dev),
    + (res->flags & PCI_PREF_RANGE_TYPE_64) ? "64" : "32",
    + res->start, res->end);
    }
    }


    \
     
     \ /
      Last update: 2008-09-17 09:15    [W:0.029 / U:179.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site