PCI/AER: Log aer_inject error injections
Log successful error injections so that injected errors can be differentiated from real errors. Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Borislav Petkov <bp@suse.de>
This commit is contained in:
parent
96b45ea5dc
commit
8e47e15e91
|
@ -492,6 +492,9 @@ static int aer_inject(struct aer_error_inj *einj)
|
|||
ret = -EPROTONOSUPPORT;
|
||||
goto out_put;
|
||||
}
|
||||
dev_info(&edev->device,
|
||||
"aer_inject: Injecting errors %08x/%08x into device %s\n",
|
||||
einj->cor_status, einj->uncor_status, pci_name(dev));
|
||||
aer_irq(-1, edev);
|
||||
} else {
|
||||
dev_err(&rpdev->dev, "aer_inject: AER device not found\n");
|
||||
|
|
Loading…
Reference in a new issue