qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT c8cd1fc] qdev: show name of device that fails ini


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT c8cd1fc] qdev: show name of device that fails init
Date: Mon, 05 Oct 2009 14:53:34 -0000

From: Amit Shah <address@hidden>

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/qdev.c b/hw/qdev.c
index 86cf81b..b2d11ce 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;
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]