Log successful error injections so that injected errors can be differentiated from real errors. Suggested-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> Signed-off-by: Jean Delvare <jdelvare@xxxxxxx> Cc: Borislav Petkov <bp@xxxxxxx> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> --- Note: none of my systems support AER injection so this is untested. drivers/pci/pcie/aer/aer_inject.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-4.5-rc4.orig/drivers/pci/pcie/aer/aer_inject.c 2016-02-18 13:20:02.063933626 +0100 +++ linux-4.5-rc4/drivers/pci/pcie/aer/aer_inject.c 2016-02-18 13:20:02.515936151 +0100 @@ -469,6 +469,9 @@ static int aer_inject(struct aer_error_i 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"); -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html