diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-09-29 15:51:03 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:52 -0500 |
commit | 99f71b27a4a20d0c3ae4782be2777f30a823f0cb (patch) | |
tree | 4c3a1784300bbad1761b407ff4e9e84507d9a195 /hw/qdev.c | |
parent | 6910a9ede6651e4ccc949886730e94c5d12b7e8b (diff) | |
download | qemu-99f71b27a4a20d0c3ae4782be2777f30a823f0cb.tar.gz qemu-99f71b27a4a20d0c3ae4782be2777f30a823f0cb.tar.bz2 qemu-99f71b27a4a20d0c3ae4782be2777f30a823f0cb.zip |
qdev: show name of device that fails init
When initialising a device fails, show the name of the failing device.
The current behaviour is to silently exit on such errors.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -215,6 +215,7 @@ DeviceState *qdev_device_add(QemuOpts *opts) return NULL; } if (qdev_init(qdev) != 0) { + qemu_error("Error initializing device %s\n", driver); qdev_free(qdev); return NULL; } |