From db716e9c16737d2575143d88a73ed1dec8dec0fb Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 25 Mar 2010 17:22:37 +0100 Subject: [PATCH] error: Convert qemu_opts_validate() to QError Signed-off-by: Markus Armbruster Signed-off-by: Luiz Capitulino --- qemu-option.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- GitLab