From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnDXi-0005nX-WE for qemu-devel@nongnu.org; Thu, 04 Mar 2010 11:04:55 -0500 Received: from [199.232.76.173] (port=58597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnDXh-0005mi-QW for qemu-devel@nongnu.org; Thu, 04 Mar 2010 11:04:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnDXT-0001RV-8s for qemu-devel@nongnu.org; Thu, 04 Mar 2010 11:04:53 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]:47493) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NnDXQ-0001Q5-Ve for qemu-devel@nongnu.org; Thu, 04 Mar 2010 11:04:38 -0500 Received: from blackfin.pond.sub.org (pD9E38041.dip.t-dialin.net [217.227.128.65]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 7DD7A2DD32A for ; Thu, 4 Mar 2010 17:04:31 +0100 (CET) From: Markus Armbruster Date: Thu, 4 Mar 2010 16:57:04 +0100 Message-Id: <1267718231-13303-44-git-send-email-armbru@redhat.com> In-Reply-To: <1267718231-13303-1-git-send-email-armbru@redhat.com> References: <1267718231-13303-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 43/50] Revert "qdev: Use QError for 'device not found' error" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Luiz Capitulino This reverts commit 3ced9f7a36189aed94d8bf86f3f5087a53012455. The next commit will convert all of qdev_device_add() to QError, and it'll be clearer with this partial conversion reverted. Signed-off-by: Markus Armbruster --- hw/qdev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index bbb1e44..d3204d4 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -29,7 +29,6 @@ #include "qdev.h" #include "sysemu.h" #include "monitor.h" -#include "qerror.h" static int qdev_hotplug = 0; @@ -208,7 +207,8 @@ DeviceState *qdev_device_add(QemuOpts *opts) /* find driver */ info = qdev_find_info(NULL, driver); if (!info || info->no_user) { - qerror_report(QERR_DEVICE_NOT_FOUND, driver); + error_report("Device \"%s\" not found. Try -device '?' for a list.", + driver); return NULL; } -- 1.6.6.1