usb: print device id in "info usb" monitor command

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2015-10-06 15:31:21 +02:00
parent e206ddfb57
commit 974826f0ab
1 changed files with 6 additions and 3 deletions

View File

@ -655,9 +655,12 @@ void hmp_info_usb(Monitor *mon, const QDict *qdict)
dev = port->dev; dev = port->dev;
if (!dev) if (!dev)
continue; continue;
monitor_printf(mon, " Device %d.%d, Port %s, Speed %s Mb/s, Product %s\n", monitor_printf(mon, " Device %d.%d, Port %s, Speed %s Mb/s, "
bus->busnr, dev->addr, port->path, usb_speed(dev->speed), "Product %s%s%s\n",
dev->product_desc); bus->busnr, dev->addr, port->path,
usb_speed(dev->speed), dev->product_desc,
dev->qdev.id ? ", ID: " : "",
dev->qdev.id ?: "");
} }
} }
} }