aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-19 10:03:13 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:34 +0100
commit3801cf8ae58726b89a37f4594b7c9095e1050501 (patch)
tree8f8479c5007f6d2b786155cb0be49b513b81ac37 /hw/qdev.c
parentfab5767f90c96194f918d39af683fff3d9ea421a (diff)
Revert "qdev: Use QError for 'device not found' error"
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.
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 27dc8dfe85..43dff041be 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;
}