Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI/AER: Log actual error causes in aer_inject
The aer_inject driver is very quiet. In most cases, it merely returns an error code to user-space, leaving the user with little clue about the actual reason for the failure. So, log error messages for 4 of the most frequent causes of failure: * Can't find the root port of the specified device. * Device doesn't support AER. * Root port doesn't support AER. * AER device not found. This gives the user a chance to understand why aer-inject failed. Based on a preliminary patch by Thomas Renninger. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> CC: Borislav Petkov <[email protected]> CC: Thomas Renninger <[email protected]>
- Loading branch information