mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
usb: print attached status in info qtree
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
26a9e82ac4
commit
66a6593a8c
+4
-3
@@ -226,9 +226,10 @@ static void usb_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent)
|
||||
USBDevice *dev = DO_UPCAST(USBDevice, qdev, qdev);
|
||||
USBBus *bus = usb_bus_from_device(dev);
|
||||
|
||||
monitor_printf(mon, "%*saddr %d.%d, speed %s, name %s\n", indent, "",
|
||||
bus->busnr, dev->addr,
|
||||
usb_speed(dev->speed), dev->devname);
|
||||
monitor_printf(mon, "%*saddr %d.%d, speed %s, name %s%s\n",
|
||||
indent, "", bus->busnr, dev->addr,
|
||||
usb_speed(dev->speed), dev->devname,
|
||||
dev->attached ? ", attached" : "");
|
||||
}
|
||||
|
||||
void usb_info(Monitor *mon)
|
||||
|
||||
Reference in New Issue
Block a user