From: Gerd Hoffmann Date: Mon, 31 Aug 2009 12:23:58 +0000 (+0200) Subject: qdev: add error message to qdev_device_add(). X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~10690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=755700885432a8692c53549dd177d7d52d5cdd17;p=sdk%2Femulator%2Fqemu.git qdev: add error message to qdev_device_add(). Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- 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);