diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2016-02-11 16:10:25 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-02-15 14:21:18 +0000 |
commit | 2cfec6a2f989d5c921ba11a329ff8ea986702b9b (patch) | |
tree | 3fa582bd30ee104927ad66fc96ba66ea6f712043 /arch/x86/pci | |
parent | d159457b84395927b5a52adb72f748dd089ad5e5 (diff) | |
download | linux-2cfec6a2f989d5c921ba11a329ff8ea986702b9b.tar.bz2 |
xen/pcifront: Report the errors better.
The messages should be different depending on the type of error.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/xen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index ff31ab464213..beac4dfdade6 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -196,7 +196,10 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) return 0; error: - dev_err(&dev->dev, "Xen PCI frontend has not registered MSI/MSI-X support!\n"); + if (ret == -ENOSYS) + dev_err(&dev->dev, "Xen PCI frontend has not registered MSI/MSI-X support!\n"); + else if (ret) + dev_err(&dev->dev, "Xen PCI frontend error: %d!\n", ret); free: kfree(v); return ret; |