From 66a6593a8c1907d5f507765080046785dbb1245a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 26 Oct 2009 15:56:51 +0100 Subject: usb: print attached status in info qtree Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/usb-bus.c | 7 ++++--- 1 file 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) -- cgit v1.2.3