mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-20 19:21:31 +00:00
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>
This commit is contained in:
parent
4d00781419
commit
7557008854
|
@ -186,8 +186,11 @@ DeviceState *qdev_device_add(QemuOpts *opts)
|
||||||
} else {
|
} else {
|
||||||
bus = qbus_find_recursive(main_system_bus, NULL, info->bus_info);
|
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;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* create device, set properties */
|
/* create device, set properties */
|
||||||
qdev = qdev_create(bus, driver);
|
qdev = qdev_create(bus, driver);
|
||||||
|
|
Loading…
Reference in a new issue