[usb] Show debug message on device removal

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/154/head
Michael Brown 2020-09-29 14:39:54 +01:00
parent 627b0ba2a0
commit 8eb19a178a
1 changed files with 5 additions and 0 deletions

View 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 );