aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-31 14:23:58 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:17 -0500
commit755700885432a8692c53549dd177d7d52d5cdd17 (patch)
tree55686795d4c9accc5fa6ce743e87ed81ffb26c5f
parent4d00781419371beea3704229f8ce1ca772d41ec8 (diff)
qdev: add error message to qdev_device_add().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/qdev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index ff2f0962ba..f9754b1140 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -186,8 +186,11 @@ DeviceState *qdev_device_add(QemuOpts *opts)
} else {
bus = qbus_find_recursive(main_system_bus, NULL, info->bus_info);
}
- if (!bus)
+ if (!bus) {
+ qemu_error("Did not find %s bus for %s\n",
+ path ? path : info->bus_info->name, info->name);
return NULL;
+ }
/* create device, set properties */
qdev = qdev_create(bus, driver);