summaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-10-06 15:31:21 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-10-20 09:15:23 +0200
commit974826f0ab1efc96cd2f61337ee75bda5cde1c77 (patch)
treec26e8e2807d8880b4efd9e8f17dadc1eacdabfb9 /hw/usb
parente206ddfb57e2595cc43ad3667b3becc6bd2ef62d (diff)
downloadqemu-974826f0ab1efc96cd2f61337ee75bda5cde1c77.tar.gz
usb: print device id in "info usb" monitor command
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-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 ?: "");
}
}
}