aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-10 23:50:07 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-19 15:18:18 -0600
commit068b332a6517b082b67b50f62f38f1952329d201 (patch)
tree13a635e3a938b0f4f3740db52d12f9a46820bb17
parent10e4f606ec5584ea20234d2e12b66a702f8b5956 (diff)
downloadqemu-068b332a6517b082b67b50f62f38f1952329d201.zip
qemu-068b332a6517b082b67b50f62f38f1952329d201.tar.gz
qemu-068b332a6517b082b67b50f62f38f1952329d201.tar.bz2
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: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index d9592e9..6a64e6e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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;