diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb-bus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 87dcc7f175..99d185e79a 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -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) |