projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab5767
)
Revert "qdev: Use QError for 'device not found' error"
author
Markus Armbruster
<armbru@redhat.com>
Fri, 19 Feb 2010 09:03:13 +0000
(10:03 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000
(17:45 +0100)
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.
hw/qdev.c
patch
|
blob
|
history
diff --git
a/hw/qdev.c
b/hw/qdev.c
index
27dc8df
..
43dff04
100644
(file)
--- 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;
}