diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-03-25 17:22:36 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-18 23:46:48 +0200 |
commit | e17ba87c52fc7d4ccfd5074428ce19f1b876ba30 (patch) | |
tree | aa3758d53a8d29723cf60ad233a6ab229cc8cf6d /monitor.c | |
parent | error: Drop extra messages after qemu_opts_set() and qemu_opts_parse() (diff) | |
download | qemu-kvm-e17ba87c52fc7d4ccfd5074428ce19f1b876ba30.tar.gz qemu-kvm-e17ba87c52fc7d4ccfd5074428ce19f1b876ba30.tar.bz2 qemu-kvm-e17ba87c52fc7d4ccfd5074428ce19f1b876ba30.zip |
error: Use QERR_INVALID_PARAMETER_VALUE instead of QERR_INVALID_PARAMETER
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -970,7 +970,8 @@ static int do_cpu_set(Monitor *mon, const QDict *qdict, QObject **ret_data) { int index = qdict_get_int(qdict, "index"); if (mon_set_cpu(index) < 0) { - qerror_report(QERR_INVALID_PARAMETER, "index"); + qerror_report(QERR_INVALID_PARAMETER_VALUE, "index", + "a CPU number"); return -1; } return 0; @@ -2405,7 +2406,8 @@ static int do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data) } if (qemu_isdigit(fdname[0])) { - qerror_report(QERR_INVALID_PARAMETER, "fdname"); + qerror_report(QERR_INVALID_PARAMETER_VALUE, "fdname", + "a name not starting with a digit"); return -1; } |