aboutsummaryrefslogtreecommitdiff
path: root/qemu-option.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-03-25 17:22:37 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-04-18 23:46:48 +0200
commitdb716e9c16737d2575143d88a73ed1dec8dec0fb (patch)
treea254f762267378abf50ef6d2893747e47532ebde /qemu-option.c
parente17ba87c52fc7d4ccfd5074428ce19f1b876ba30 (diff)
error: Convert qemu_opts_validate() to QError
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qemu-option.c')
-rw-r--r--qemu-option.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qemu-option.c b/qemu-option.c
index 394c763a00..1ffc497828 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -877,8 +877,7 @@ int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
}
}
if (desc[i].name == NULL) {
- fprintf(stderr, "option \"%s\" is not valid for %s\n",
- opt->name, opts->list->name);
+ qerror_report(QERR_INVALID_PARAMETER, opt->name);
return -1;
}