diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2016-02-11 22:10:25 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-02-15 15:21:18 +0100 |
commit | 2cfec6a2f989d5c921ba11a329ff8ea986702b9b (patch) | |
tree | 3fa582bd30ee104927ad66fc96ba66ea6f712043 /arch/x86/pci/xen.c | |
parent | xen/pciback: Save the number of MSI-X entries to be copied later. (diff) | |
download | linux-2cfec6a2f989d5c921ba11a329ff8ea986702b9b.tar.xz linux-2cfec6a2f989d5c921ba11a329ff8ea986702b9b.zip |
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/xen.c')
-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; |