diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-04-21 14:35:42 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-05-22 07:54:06 -0500 |
commit | adedc05e938fada9c39c89bdea80217355fce6e8 (patch) | |
tree | eaa46aa23973010307478342d6a6d69cb293e381 /arch/sparc/kernel/leon_pci.c | |
parent | b30f46518a6c2695d389065994792efaa9c7bc75 (diff) | |
download | linux-adedc05e938fada9c39c89bdea80217355fce6e8.tar.bz2 |
sparc/PCI: Use dev_printk() when possible
Use the pci_info() and pci_err() wrappers for dev_printk() when possible.
Log PCI device vendor and device IDs and BAR information in the same format
used by other architectures.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/sparc/kernel/leon_pci.c')
-rw-r--r-- | arch/sparc/kernel/leon_pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c index c2a5033b07c3..e5e5ff6b9a5c 100644 --- a/arch/sparc/kernel/leon_pci.c +++ b/arch/sparc/kernel/leon_pci.c @@ -82,9 +82,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) } if (cmd != oldcmd) { - printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n", - pci_name(dev), cmd); - /* Enable the appropriate bits in the PCI command register. */ + pci_info(dev, "enabling device (%04x -> %04x)\n", oldcmd, cmd); pci_write_config_word(dev, PCI_COMMAND, cmd); } return 0; |