From 068b332a6517b082b67b50f62f38f1952329d201 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 10 Feb 2010 23:50:07 -0200 Subject: [PATCH] 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 Signed-off-by: Anthony Liguori --- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index d9592e9d1..6a64e6e21 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;