error: Convert qemu_opts_validate() to QError

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Markus Armbruster 2010-03-25 17:22:37 +01:00 committed by Aurelien Jarno
parent e17ba87c52
commit db716e9c16

View File

@ -877,8 +877,7 @@ int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
} }
} }
if (desc[i].name == NULL) { if (desc[i].name == NULL) {
fprintf(stderr, "option \"%s\" is not valid for %s\n", qerror_report(QERR_INVALID_PARAMETER, opt->name);
opt->name, opts->list->name);
return -1; return -1;
} }