]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xen/pci: Bubble up error and fix description.
authorKonrad Rzeszutek Wilk <konrad@kernel.org>
Tue, 6 Dec 2016 14:28:21 +0000 (09:28 -0500)
committerJuergen Gross <jgross@suse.com>
Thu, 8 Dec 2016 06:54:04 +0000 (07:54 +0100)
The function is never called under PV guests, and only shows up
when MSI (or MSI-X) cannot be allocated. Convert the message
to include the error value.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/pci/xen.c

index bedfab98077a219bd1d9842a0dc6e66f4b6a27c5..e1fb269c87af7b39f1445e01734e76f431982f58 100644 (file)
@@ -264,8 +264,8 @@ static int xen_hvm_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");
+       dev_err(&dev->dev, "Failed to create MSI%s! ret=%d!\n",
+               type == PCI_CAP_ID_MSI ? "" : "-X", irq);
        return irq;
 }