aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-01-29 10:34:00 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-03 12:39:01 -0600
commitcc0c4185e54867ef93c4b4dc0a8f3ecbc20ece42 (patch)
tree511ab35543d7653fa06b58c858d51b8f1a675573
parentc6027f56dc547b5028f0b560bcf4671b6e2a765d (diff)
downloadqemu-cc0c4185e54867ef93c4b4dc0a8f3ecbc20ece42.zip
qemu-cc0c4185e54867ef93c4b4dc0a8f3ecbc20ece42.tar.gz
qemu-cc0c4185e54867ef93c4b4dc0a8f3ecbc20ece42.tar.bz2
monitor: Use QERR_INVALID_PARAMETER instead of QERR_INVALID_CPU_INDEX
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>
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index ef33cf4..ff22123 100644
--- 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)