提交 068b332a 编写于 作者: L Luiz Capitulino 提交者: Anthony Liguori

Monitor: Report more than one error in handlers

Handlers can generate only one error in a call, we let the
programmer know if they brake this rule and clients will only
get the first generated error.
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 10e4f606
......@@ -4760,7 +4760,8 @@ void qemu_error_internal(const char *file, int linenr, const char *func,
if (!qemu_error_sink->mon->error) {
qemu_error_sink->mon->error = qerror;
} else {
/* XXX: warn the programmer */
MON_DEBUG("Additional error report at %s:%d\n", qerror->file,
qerror->linenr);
QDECREF(qerror);
}
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册