summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann2017-01-31 14:52:06 +0100
committerGerd Hoffmann2017-02-06 10:23:17 +0100
commite306b2fd3bce369feb05e2510299f81d71bc6092 (patch)
treef846cd003f132b997a7bdc440fd34e9acf0e7f84
parenthw/usb/dev-hid: Improve guest compatibility of usb-tablet (diff)
downloadqemu-e306b2fd3bce369feb05e2510299f81d71bc6092.tar.gz
qemu-e306b2fd3bce369feb05e2510299f81d71bc6092.tar.xz
qemu-e306b2fd3bce369feb05e2510299f81d71bc6092.zip
usb/uas: more verbose error message
Print some more details in case we get a unknown control request, to ease trouble-shooting. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1485870727-21956-1-git-send-email-kraxel@redhat.com
-rw-r--r--hw/usb/dev-uas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c
index 3a8ff18b1b..da2fb7017e 100644
--- a/hw/usb/dev-uas.c
+++ b/hw/usb/dev-uas.c
@@ -653,7 +653,8 @@ static void usb_uas_handle_control(USBDevice *dev, USBPacket *p,
if (ret >= 0) {
return;
}
- error_report("%s: unhandled control request", __func__);
+ error_report("%s: unhandled control request (req 0x%x, val 0x%x, idx 0x%x",
+ __func__, request, value, index);
p->status = USB_RET_STALL;
}