summaryrefslogtreecommitdiff
path: root/usb-linux.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-08-29 13:45:25 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-01-17 09:44:50 +0100
commit5b6780d045720848c57a7cf461b49befcd24c691 (patch)
tree9a98421d3ba3a512bd8c5650f8a07ac7fcbc26ed /usb-linux.c
parent83a53bbcdae2270656d70c7311d4f7f791532d23 (diff)
downloadqemu-5b6780d045720848c57a7cf461b49befcd24c691.tar.gz
usb/debug: add usb_ep_dump
Add function to dump endpoint data, for debugging purposes. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'usb-linux.c')
-rw-r--r--usb-linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-linux.c b/usb-linux.c
index cb66ef3469..2a7b748ee6 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -1214,6 +1214,9 @@ static int usb_linux_update_endp_table(USBHostDevice *s)
i += descriptors[i];
}
}
+#ifdef DEBUG
+ usb_ep_dump(&s->dev);
+#endif
return 0;
}