[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 7557008] qdev: add error message to qdev_device_a
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 7557008] qdev: add error message to qdev_device_add(). |
Date: |
Wed, 09 Sep 2009 22:36:49 -0000 |
From: Gerd Hoffmann <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/qdev.c b/hw/qdev.c
index ff2f096..f9754b1 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 7557008] qdev: add error message to qdev_device_add().,
Anthony Liguori <=