diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-18 11:57:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-23 08:43:10 +0200 |
commit | 3b7e759a4110690c9617b1ffa6a7c96a343a330d (patch) | |
tree | 9c25bc23d516efee566ae1e027e5dbf3968c74fa /hw/usb/desc.c | |
parent | e449f26bed42b1d8c6efefcd8dc768f23f19458f (diff) |
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>
Diffstat (limited to 'hw/usb/desc.c')
-rw-r--r-- | hw/usb/desc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/usb/desc.c b/hw/usb/desc.c index b389381326..fce303e9c8 100644 --- a/hw/usb/desc.c +++ b/hw/usb/desc.c @@ -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); |