Skip to contentSkip to conversation

xen/vpci: Fix msix existing mapping printk

PATCH In review Jason Andryuk 2 participants 2 messages Apr 24, 2025 – Apr 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/vpci: Fix msix existing mapping printk

The format string lacks a space, so mfn and type run together:
(XEN) d0v0 0000:06:00.7: existing mapping (mfn: 753037type: 0) at 0x1 clobbers MSIX MMIO area

Add a space. Additionally, move the format string to a single long line to improve grep-ability.

Fixes 677053fac17a ("vpci/msix: carve p2m hole for MSIX MMIO regions")

---
v2:
Use a single line
Add Fixes

---
 xen/drivers/vpci/msix.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
xen/drivers/vpci/msix.c +1 -2
index f3804ce047..3568f2a651 100644
@@ -665,8 +665,7 @@ int vpci_make_msix_hole(const struct pci_dev *pdev)
             default:
                 put_gfn(d, start);
                 gprintk(XENLOG_WARNING,
-                        "%pp: existing mapping (mfn: %" PRI_mfn
-                        "type: %d) at %#lx clobbers MSIX MMIO area\n",
+                        "%pp: existing mapping (mfn: %" PRI_mfn " type: %d) at %#lx clobbers MSIX MMIO area\n",
                         &pdev->sbdf, mfn_x(mfn), t, start);
                 return -EEXIST;
             }
Signature · 1 line
2.49.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · Jason Andryuk

The format string lacks a space, so mfn and type run together:
(XEN) d0v0 0000:06:00.7: existing mapping (mfn: 753037type: 0) at 0x1 clobbers MSIX MMIO area

Add a space. Additionally, move the format string to a single long line to improve grep-ability.

Fixes 677053fac17a ("vpci/msix: carve p2m hole for MSIX MMIO regions")

Thanks, Roger.