diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-05-23 11:36:51 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-05-23 11:36:51 -0400 |
commit | 85137fb5f2dfa5f83e9e340ca881c634ae14d4e9 (patch) | |
tree | 0538b9a469d258ba5a8a0128f07c7a0d84a4c94d | |
parent | a9cf782445fd4eab6cff5a41c1f778e2c702274a (diff) | |
download | seabios-85137fb5f2dfa5f83e9e340ca881c634ae14d4e9.tar.gz |
virtio-pci: Use %pP format in dprintf() calls
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/hw/virtio-pci.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index 96f9c6b0..d5435218 100644 --- a/src/hw/virtio-pci.c +++ b/src/hw/virtio-pci.c @@ -417,9 +417,8 @@ void vp_init_simple(struct vp_device *vp, struct pci_device *pci) vp->device.cfg = cap; vp->device.bdf = pci->bdf; vp_cap = NULL; - dprintf(1, "pci dev %x:%x virtio cap at 0x%x type %d [pci cfg access]\n", - pci_bdf_to_bus(pci->bdf), pci_bdf_to_dev(pci->bdf), - cap, type); + dprintf(1, "pci dev %pP virtio cap at 0x%x type %d" + " [pci cfg access]\n", pci, cap, type); break; default: vp_cap = NULL; @@ -473,10 +472,9 @@ void vp_init_simple(struct vp_device *vp, struct pci_device *pci) mode = "Huh?"; break; } - dprintf(1, "pci dev %x:%x virtio cap at 0x%x type %d " + dprintf(1, "pci dev %pP virtio cap at 0x%x type %d " "bar %d at 0x%08llx off +0x%04x [%s]\n", - pci_bdf_to_bus(pci->bdf), pci_bdf_to_dev(pci->bdf), - vp_cap->cap, type, vp_cap->bar, addr, offset, mode); + pci, vp_cap->cap, type, vp_cap->bar, addr, offset, mode); } cap = pci_find_capability(pci->bdf, PCI_CAP_ID_VNDR, cap); |