]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[usb] Show debug message on device removal
authorMichael Brown <mcb30@ipxe.org>
Tue, 29 Sep 2020 13:39:54 +0000 (14:39 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 29 Sep 2020 13:39:54 +0000 (14:39 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c

index 74f11ecb805430a0528fa9764e4136add9062c24..fca47fd36d99177ee589fa3ca7f8e9c649c3e0cd 100644 (file)
@@ -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 );