diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2009-09-07 04:16:45 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-09 16:50:05 -0400 |
commit | 79e4b89be81b5e53bc4cb51788ca7a45cadb4ef3 (patch) | |
tree | 846f21ae6628559b68778d2e438ac3503c76ca79 /drivers/pci/pcie/aer/aerdrv.h | |
parent | 273024ded7b364e1305a31bf4eb197870284f279 (diff) |
PCI: pcie, aer: change error print format
Use dev_printk like format.
Sample (real machine + dummy error injected by aer-inject):
- Before:
+------ PCI-Express Device Error ------+
Error Severity : Corrected
PCIE Bus Error type : Data Link Layer
Bad TLP :
Receiver ID : 2800
VendorID=8086h, DeviceID=1096h, Bus=28h, Device=00h, Function=00h
+------ PCI-Express Device Error ------+
Error Severity : Corrected
PCIE Bus Error type : Data Link Layer
Bad TLP :
Bad DLLP :
Receiver ID : 2801
VendorID=8086h, DeviceID=1096h, Bus=28h, Device=00h, Function=01h
Error of this Agent(2801) is reported first
- After:
pcieport-driver 0000:00:02.0: AER: Multiple Corrected error received: id=2801
e1000e 0000:28:00.0: PCIE Bus Error: severity=Corrected, type=Data Link Layer, id=2800(Receiver ID)
e1000e 0000:28:00.0: device [8086:1096] error status/mask=00000040/00000000
e1000e 0000:28:00.0: [ 6] Bad TLP
e1000e 0000:28:00.1: PCIE Bus Error: severity=Corrected, type=Data Link Layer, id=2801(Receiver ID)
e1000e 0000:28:00.1: device [8086:1096] error status/mask=000000c0/00000000
e1000e 0000:28:00.1: [ 6] Bad TLP
e1000e 0000:28:00.1: [ 7] Bad DLLP
e1000e 0000:28:00.1: Error of this Agent(2801) is reported first
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/aer/aerdrv.h')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.h b/drivers/pci/pcie/aer/aerdrv.h index 78c977cec479..f9979eb56fb2 100644 --- a/drivers/pci/pcie/aer/aerdrv.h +++ b/drivers/pci/pcie/aer/aerdrv.h | |||
@@ -124,6 +124,7 @@ extern void aer_delete_rootport(struct aer_rpc *rpc); | |||
124 | extern int aer_init(struct pcie_device *dev); | 124 | extern int aer_init(struct pcie_device *dev); |
125 | extern void aer_isr(struct work_struct *work); | 125 | extern void aer_isr(struct work_struct *work); |
126 | extern void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); | 126 | extern void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); |
127 | extern void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info); | ||
127 | extern irqreturn_t aer_irq(int irq, void *context); | 128 | extern irqreturn_t aer_irq(int irq, void *context); |
128 | 129 | ||
129 | #ifdef CONFIG_ACPI | 130 | #ifdef CONFIG_ACPI |