summary refs log tree commit diff stats
path: root/hw/usb/bus.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-10-20 10:52:56 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-10-20 10:52:56 +0100
commitc14e42d7a4495ecbad7bf8b3d603272e3a8992a1 (patch)
tree66a8c6ae440d391bae215e5e18c32eb094fee61d /hw/usb/bus.c
parentf52dd72dc1a679529e13e51a7b57e787455f92f0 (diff)
parent37bc43f7fbfb38003550b327002e59d21b80a3e4 (diff)
downloadfocaccia-qemu-c14e42d7a4495ecbad7bf8b3d603272e3a8992a1.tar.gz
focaccia-qemu-c14e42d7a4495ecbad7bf8b3d603272e3a8992a1.zip
Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20151020-1' into staging
usb: misc small tweaks.

# gpg: Signature made Tue 20 Oct 2015 08:24:09 BST using RSA key ID D3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
# gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
# gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"

* remotes/kraxel/tags/pull-usb-20151020-1:
  usb-audio: increate default buffer size
  usb: print device id in "info usb" monitor command
  usb-host: add wakeup call for iso xfers

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/usb/bus.c')
-rw-r--r--hw/usb/bus.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index 5f39e1e3ac..ee6b43abc6 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -655,9 +655,12 @@ void hmp_info_usb(Monitor *mon, const QDict *qdict)
             dev = port->dev;
             if (!dev)
                 continue;
-            monitor_printf(mon, "  Device %d.%d, Port %s, Speed %s Mb/s, Product %s\n",
-                           bus->busnr, dev->addr, port->path, usb_speed(dev->speed),
-                           dev->product_desc);
+            monitor_printf(mon, "  Device %d.%d, Port %s, Speed %s Mb/s, "
+                           "Product %s%s%s\n",
+                           bus->busnr, dev->addr, port->path,
+                           usb_speed(dev->speed), dev->product_desc,
+                           dev->qdev.id ? ", ID: " : "",
+                           dev->qdev.id ?: "");
         }
     }
 }