diff options
author | Amit Shah | 2009-09-29 12:21:03 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-10-05 16:32:52 +0200 |
commit | c8cd1fcd668f514a84f5e6d93a8e6f19c082708a (patch) | |
tree | 4c3a1784300bbad1761b407ff4e9e84507d9a195 | |
parent | vnc: Set invalid buffer pointers to NULL (diff) | |
download | qemu-c8cd1fcd668f514a84f5e6d93a8e6f19c082708a.tar.gz qemu-c8cd1fcd668f514a84f5e6d93a8e6f19c082708a.tar.xz qemu-c8cd1fcd668f514a84f5e6d93a8e6f19c082708a.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>
-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; } |