aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/pci/xen.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2016-02-11 16:10:25 -0500
committerDavid Vrabel <david.vrabel@citrix.com>2016-02-15 14:21:18 +0000
commit2cfec6a2f989d5c921ba11a329ff8ea986702b9b (patch)
tree3fa582bd30ee104927ad66fc96ba66ea6f712043 /arch/x86/pci/xen.c
parentxen/pciback: Save the number of MSI-X entries to be copied later. (diff)
downloadwireguard-linux-2cfec6a2f989d5c921ba11a329ff8ea986702b9b.tar.xz
wireguard-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.c5
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;