From c8cd1fcd668f514a84f5e6d93a8e6f19c082708a Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Tue, 29 Sep 2009 15:51:03 +0530 Subject: [PATCH] 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 Signed-off-by: Anthony Liguori --- hw/qdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/qdev.c b/hw/qdev.c index 86cf81be9b..b2d11cebba 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -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; } -- GitLab