From patchwork Wed Sep 23 11:14:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: qdev: show failing device name instead of silently exiting Date: Wed, 23 Sep 2009 01:14:31 -0000 From: Amit Shah X-Patchwork-Id: 34158 Message-Id: <1253704471-30740-1-git-send-email-amit.shah@redhat.com> To: qemu-devel@nongnu.org Cc: Amit Shah If initializing a device fails, show the name of the device and then exit Signed-off-by: Amit Shah --- hw/qdev.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 1d79db0..62a6fc7 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -203,6 +203,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; }