aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/usb-xhci.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-02-03 03:03:15 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-02-03 10:38:20 -0500
commit7b67300f7d9db7dcf855e201db2f0da8f318e40d (patch)
tree140ff3110ad5ac93e0e812b855a6fd55b7633262 /src/hw/usb-xhci.c
parent01a30dc7e38859125f4120e4f10f26af4049daf7 (diff)
downloadseabios-7b67300f7d9db7dcf855e201db2f0da8f318e40d.tar.gz
pci: Implement '%pP' printf handler for 'struct pci_device' pointers
Handle '%pP' format descriptions as a pointer to a 'struct pci_device' and display it in bus:device.function (%02x:%02x.%x) format. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb-xhci.c')
-rw-r--r--src/hw/usb-xhci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c
index af09592f..6c1720de 100644
--- a/src/hw/usb-xhci.c
+++ b/src/hw/usb-xhci.c
@@ -552,11 +552,10 @@ xhci_controller_setup(struct pci_device *pci)
xhci->usb.pci = pci;
xhci->usb.type = USB_TYPE_XHCI;
- dprintf(1, "XHCI init on dev %02x:%02x.%x: regs @ %p, %d ports, %d slots"
+ dprintf(1, "XHCI init on dev %pP: regs @ %p, %d ports, %d slots"
", %d byte contexts\n"
- , pci_bdf_to_bus(pci->bdf), pci_bdf_to_dev(pci->bdf)
- , pci_bdf_to_fn(pci->bdf), xhci->caps
- , xhci->ports, xhci->slots, xhci->context64 ? 64 : 32);
+ , pci, xhci->caps, xhci->ports, xhci->slots
+ , xhci->context64 ? 64 : 32);
if (xhci->xcap) {
u32 off;