Commit 576700b6 authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI/AER: Log errors with PCI device, not PCIe service device

All other AER-related log messages use the PCI device, e.g.,
"pci 0000:00:1c.0", not the PCIe service device, e.g.,
"aer 0000:00:1c.0:pcie02".

Change the probe error messages to match the rest and include a little
context.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 2298a7aa
...@@ -290,12 +290,12 @@ static int aer_probe(struct pcie_device *dev) ...@@ -290,12 +290,12 @@ static int aer_probe(struct pcie_device *dev)
{ {
int status; int status;
struct aer_rpc *rpc; struct aer_rpc *rpc;
struct device *device = &dev->device; struct device *device = &dev->port->dev;
/* Alloc rpc data structure */ /* Alloc rpc data structure */
rpc = aer_alloc_rpc(dev); rpc = aer_alloc_rpc(dev);
if (!rpc) { if (!rpc) {
dev_printk(KERN_DEBUG, device, "alloc rpc failed\n"); dev_printk(KERN_DEBUG, device, "alloc AER rpc failed\n");
aer_remove(dev); aer_remove(dev);
return -ENOMEM; return -ENOMEM;
} }
...@@ -303,7 +303,8 @@ static int aer_probe(struct pcie_device *dev) ...@@ -303,7 +303,8 @@ static int aer_probe(struct pcie_device *dev)
/* Request IRQ ISR */ /* Request IRQ ISR */
status = request_irq(dev->irq, aer_irq, IRQF_SHARED, "aerdrv", dev); status = request_irq(dev->irq, aer_irq, IRQF_SHARED, "aerdrv", dev);
if (status) { if (status) {
dev_printk(KERN_DEBUG, device, "request IRQ failed\n"); dev_printk(KERN_DEBUG, device, "request AER IRQ %d failed\n",
dev->irq);
aer_remove(dev); aer_remove(dev);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment