projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26a9e82
)
usb: print attached status in info qtree
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 26 Oct 2009 14:56:51 +0000
(15:56 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 30 Oct 2009 13:39:32 +0000
(08:39 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/usb-bus.c
patch
|
blob
|
history
diff --git
a/hw/usb-bus.c
b/hw/usb-bus.c
index
87dcc7f
..
99d185e
100644
(file)
--- 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)