From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsZq6-0002p4-E9 for qemu-devel@nongnu.org; Tue, 29 Sep 2009 06:21:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsZq1-0002ng-Ke for qemu-devel@nongnu.org; Tue, 29 Sep 2009 06:21:45 -0400 Received: from [199.232.76.173] (port=38621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsZq1-0002nW-EE for qemu-devel@nongnu.org; Tue, 29 Sep 2009 06:21:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47707) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsZq0-0004ad-WA for qemu-devel@nongnu.org; Tue, 29 Sep 2009 06:21:41 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8TALcS7025719 for ; Tue, 29 Sep 2009 06:21:38 -0400 From: Amit Shah Date: Tue, 29 Sep 2009 15:51:03 +0530 Message-Id: <1254219664-7437-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] qdev: show name of device that fails init List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah 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 --- 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