提交 51693297 编写于 作者: M Mark McLoughlin 提交者: Anthony Liguori

Remove double error message in qemu_option_set()

qemu_opt_set() prints an error message in all failure cases, so
qemu_set_option() doesn't need to print another error.
Signed-off-by: NMark McLoughlin <markmc@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 a676968b
...@@ -209,8 +209,6 @@ int qemu_set_option(const char *str) ...@@ -209,8 +209,6 @@ int qemu_set_option(const char *str)
} }
if (qemu_opt_set(opts, arg, str+offset+1) == -1) { if (qemu_opt_set(opts, arg, str+offset+1) == -1) {
qemu_error("failed to set \"%s\" for %s \"%s\"\n",
arg, lists[i]->name, id);
return -1; return -1;
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册