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>
This commit is contained in:
Markus Armbruster 2010-01-29 10:34:00 +01:00 committed by Anthony Liguori
parent c6027f56dc
commit cc0c4185e5

View file

@ -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)