PCI: use dev_printk when possible
Convert printks to use dev_printk(). I converted pr_debug() to dev_dbg(). Both use KERN_DEBUG and are enabled only when DEBUG is defined. I converted printk(KERN_DEBUG) to dev_printk(KERN_DEBUG), not to dev_dbg(), because dev_dbg() is only enabled when DEBUG is defined. I converted DBG(KERN_INFO) (only in setup-bus.c) to dev_info(). The DBG() name makes it sound like debug, but it's been enabled forever, so dev_info() preserves the previous behavior. I tried to make the resource assignment formats more consistent, e.g., "BAR %d: got res [%#llx-%#llx] bus [%#llx-%#llx] flags %#lx\n" instead of sometimes using "start-end" and sometimes using "size@start". I'm not attached to one or the other; I'd just like them consistent. Signed-off-by:Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- drivers/pci/msi.c 4 additions, 6 deletionsdrivers/pci/msi.c
- drivers/pci/pci.c 18 additions, 22 deletionsdrivers/pci/pci.c
- drivers/pci/probe.c 15 additions, 14 deletionsdrivers/pci/probe.c
- drivers/pci/setup-bus.c 18 additions, 25 deletionsdrivers/pci/setup-bus.c
- drivers/pci/setup-irq.c 1 addition, 2 deletionsdrivers/pci/setup-irq.c
- drivers/pci/setup-res.c 33 additions, 37 deletionsdrivers/pci/setup-res.c
Loading
Please register or sign in to comment