| Subject: | [Qemu-devel] [PATCH 1/2] qdev: show name of device that fails init |
|---|---|
| From: | Amit Shah |
| Date: | Tue, 29 Sep 2009 15:51:03 +0530 |
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@xxxxxxxxxx>
---
hw/qdev.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/qdev.c b/hw/qdev.c
index a589d72..a04fdb3 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;
}
--
1.6.2.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Qemu-devel] [PATCH 2/2] virtio-pci: return error if virtio_console_init fails, Amit Shah |
|---|---|
| Next by Date: | [Qemu-devel] [PATCH 4/6] virtio-console-port: Add a new device on the virtio-console-bus for generic host-guest communication, Amit Shah |
| Previous by Thread: | [Qemu-devel] [PATCH] x86: use globals for CPU registers (rev 2), Laurent Desnogues |
| Next by Thread: | [Qemu-devel] [PATCH 2/2] virtio-pci: return error if virtio_console_init fails, Amit Shah |
| Indexes: | [Date] [Thread] [Top] [All Lists] |