mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
b30f46518a
commit
adedc05e93
5 changed files with 70 additions and 79 deletions
|
@ -191,8 +191,8 @@ static void sparc64_teardown_msi_irq(unsigned int irq,
|
|||
break;
|
||||
}
|
||||
if (i >= pbm->msi_num) {
|
||||
printk(KERN_ERR "%s: teardown: No MSI for irq %u\n",
|
||||
pbm->name, irq);
|
||||
pci_err(pdev, "%s: teardown: No MSI for irq %u\n", pbm->name,
|
||||
irq);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -201,9 +201,9 @@ static void sparc64_teardown_msi_irq(unsigned int irq,
|
|||
|
||||
err = ops->msi_teardown(pbm, msi_num);
|
||||
if (err) {
|
||||
printk(KERN_ERR "%s: teardown: ops->teardown() on MSI %u, "
|
||||
"irq %u, gives error %d\n",
|
||||
pbm->name, msi_num, irq, err);
|
||||
pci_err(pdev, "%s: teardown: ops->teardown() on MSI %u, "
|
||||
"irq %u, gives error %d\n", pbm->name, msi_num, irq,
|
||||
err);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue