提交 db716e9c 编写于 作者: M Markus Armbruster 提交者: Aurelien Jarno

error: Convert qemu_opts_validate() to QError

Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
上级 e17ba87c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册