aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index ef33cf4402..ff22123693 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)