aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-09-29 14:39:54 +0100
committerMichael Brown <mcb30@ipxe.org>2020-09-29 14:39:54 +0100
commit8eb19a178a5d6ca89ca2b8200dae0f7cec15ae2c (patch)
treebc89225fb564d01d995ab47fd6bfb8227e495a5e
parent627b0ba2a0ee6be1ebe863c54a6c3154d6c40e2e (diff)
downloadipxe-8eb19a178a5d6ca89ca2b8200dae0f7cec15ae2c.tar.gz
[usb] Show debug message on device removal
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/drivers/bus/usb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/bus/usb.c b/src/drivers/bus/usb.c
index 74f11ecb8..fca47fd36 100644
--- a/src/drivers/bus/usb.c
+++ b/src/drivers/bus/usb.c
@@ -1637,6 +1637,11 @@ static void unregister_usb ( struct usb_device *usb ) {
struct io_buffer *iobuf;
struct io_buffer *tmp;
+ DBGC ( usb, "USB %s addr %d %04x:%04x class %d:%d:%d removed\n",
+ usb->name, usb->address, le16_to_cpu ( usb->device.vendor ),
+ le16_to_cpu ( usb->device.product ), usb->device.class.class,
+ usb->device.class.subclass, usb->device.class.protocol );
+
/* Sanity checks */
assert ( port->usb == usb );