From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi5vl-0005Dr-Lj for qemu-devel@nongnu.org; Mon, 31 Aug 2009 08:24:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi5vg-0005B6-Kn for qemu-devel@nongnu.org; Mon, 31 Aug 2009 08:24:16 -0400 Received: from [199.232.76.173] (port=46677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi5vg-0005Ap-6p for qemu-devel@nongnu.org; Mon, 31 Aug 2009 08:24:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62479) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi5vf-0001gb-Ny for qemu-devel@nongnu.org; Mon, 31 Aug 2009 08:24:12 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7VCOABB026399 for ; Mon, 31 Aug 2009 08:24:11 -0400 From: Gerd Hoffmann Date: Mon, 31 Aug 2009 14:23:58 +0200 Message-Id: <1251721445-17824-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1251721445-17824-1-git-send-email-kraxel@redhat.com> References: <1251721445-17824-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/9] qdev: add error message to qdev_device_add(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/qdev.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index ff2f096..f9754b1 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -186,8 +186,11 @@ DeviceState *qdev_device_add(QemuOpts *opts) } else { bus = qbus_find_recursive(main_system_bus, NULL, info->bus_info); } - if (!bus) + if (!bus) { + qemu_error("Did not find %s bus for %s\n", + path ? path : info->bus_info->name, info->name); return NULL; + } /* create device, set properties */ qdev = qdev_create(bus, driver); -- 1.6.2.5