projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6027f5
)
monitor: Use QERR_INVALID_PARAMETER instead of QERR_INVALID_CPU_INDEX
author
Markus Armbruster
<armbru@redhat.com>
Fri, 29 Jan 2010 09:34:00 +0000
(10:34 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 3 Feb 2010 18:39:01 +0000
(12:39 -0600)
This changes the error message from "Invalid CPU index" to "Invalid
parameter index" in the human monitor.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index ef33cf4402b6cb116ba01a7773f1374121a7da31..ff22123693b76e2be61275bc6665c1c818d6232c 100644
(file)
--- a/
monitor.c
+++ b/
monitor.c
@@
-907,7
+907,7
@@
static void do_cpu_set(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
int index = qdict_get_int(qdict, "index");
if (mon_set_cpu(index) < 0)
- qemu_error_new(QERR_INVALID_
CPU_INDEX
);
+ qemu_error_new(QERR_INVALID_
PARAMETER, "index"
);
}
static void do_info_jit(Monitor *mon)