diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-26 15:56:51 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:32 -0500 |
commit | 66a6593a8c1907d5f507765080046785dbb1245a (patch) | |
tree | 3b61394799ebe21ac1125ac2c8135aa0c1b88c22 /hw/usb-bus.c | |
parent | 26a9e82ac4419f4d096404100b63fb2200e47000 (diff) |
usb: print attached status in info qtree
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-bus.c')
-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) |