mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
usb: print device id in "info usb" monitor command
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e206ddfb57
commit
974826f0ab
@ -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 ?: "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user