Commit 8e47e15e authored by Jean Delvare's avatar Jean Delvare Committed by Bjorn Helgaas

PCI/AER: Log aer_inject error injections

Log successful error injections so that injected errors can be
differentiated from real errors.
Suggested-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
CC: Borislav Petkov <bp@suse.de>
parent 96b45ea5
...@@ -492,6 +492,9 @@ static int aer_inject(struct aer_error_inj *einj) ...@@ -492,6 +492,9 @@ static int aer_inject(struct aer_error_inj *einj)
ret = -EPROTONOSUPPORT; ret = -EPROTONOSUPPORT;
goto out_put; 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); aer_irq(-1, edev);
} else { } else {
dev_err(&rpdev->dev, "aer_inject: AER device not found\n"); dev_err(&rpdev->dev, "aer_inject: AER device not found\n");
......
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