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:
Jean Delvare 2016-02-18 13:54:02 +01:00 committed by Bjorn Helgaas
parent 96b45ea5dc
commit 8e47e15e91
1 changed files with 3 additions and 0 deletions

View File

@ -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");