mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
usb: better speed mismatch error reporting
Report the supported speeds for device and port in the error message. Also add the speeds to the tracepoint. And while being at it drop the redundant error message in usb_desc_attach, usb_device_attach will report the error anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e449f26bed
commit
3b7e759a41
3 changed files with 33 additions and 7 deletions
|
@ -522,8 +522,6 @@ void usb_desc_attach(USBDevice *dev)
|
|||
} else if (desc->full && (dev->port->speedmask & USB_SPEED_MASK_FULL)) {
|
||||
dev->speed = USB_SPEED_FULL;
|
||||
} else {
|
||||
fprintf(stderr, "usb: port/device speed mismatch for \"%s\"\n",
|
||||
usb_device_get_product_desc(dev));
|
||||
return;
|
||||
}
|
||||
usb_desc_setdefaults(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue