Skip to contentSkip to conversation

vPCI: replace %pp

PATCH In review Jan Beulich 2 participants 2 messages Apr 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vPCI: replace %pp

4.14 doesn't know of this format specifier extension yet.

Fixes 47188b2fdcc6 ("vpci/msix: fix PBA accesses")
xen/drivers/vpci/msix.c +7 -4
@@ -258,8 +258,9 @@ static int msix_read(struct vcpu *v, uns
         if ( !pba )
         {
             gprintk(XENLOG_WARNING,
-                    "%pp: unable to map MSI-X PBA, report all pending\n",
-                    msix->pdev);
+                    "%04x:%02x:%02x.%u: unable to map MSI-X PBA, report all pending\n",
+                    msix->pdev->seg, msix->pdev->bus, PCI_SLOT(msix->pdev->devfn),
+                    PCI_FUNC(msix->pdev->devfn));
             return X86EMUL_OKAY;
         }
 
@@ -342,8 +343,10 @@ static int msix_write(struct vcpu *v, un
             {
                 /* Unable to map the PBA, ignore write. */
                 gprintk(XENLOG_WARNING,
-                        "%pp: unable to map MSI-X PBA, write ignored\n",
-                        msix->pdev);
+                        "%04x:%02x:%02x.%u: unable to map MSI-X PBA, write ignored\n",
+                        msix->pdev->seg, msix->pdev->bus,
+                        PCI_SLOT(msix->pdev->devfn),
+                        PCI_FUNC(msix->pdev->devfn));
                 return X86EMUL_OKAY;
             }