提交 75570088 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev: add error message to qdev_device_add().

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 4d007814
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册