diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-01-20 13:07:35 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-26 14:55:11 -0600 |
commit | 81a1b45ac7a3a2d4536b3827defdcbabdb221051 (patch) | |
tree | 3fb7781b5b45e48fd2bba2e1979a5ff4d83ad62e /monitor.c | |
parent | 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5 (diff) | |
download | qemu-81a1b45ac7a3a2d4536b3827defdcbabdb221051.zip qemu-81a1b45ac7a3a2d4536b3827defdcbabdb221051.tar.gz qemu-81a1b45ac7a3a2d4536b3827defdcbabdb221051.tar.bz2 |
monitor: convert do_cpu_set() to QObject, QError
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -807,11 +807,11 @@ static void do_info_cpus(Monitor *mon, QObject **ret_data) *ret_data = QOBJECT(cpu_list); } -static void do_cpu_set(Monitor *mon, const QDict *qdict) +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) - monitor_printf(mon, "Invalid CPU index\n"); + qemu_error_new(QERR_INVALID_CPU_INDEX); } static void do_info_jit(Monitor *mon) |