From: Luiz Capitulino Date: Thu, 11 Feb 2010 01:50:07 +0000 (-0200) Subject: Monitor: Report more than one error in handlers X-Git-Tag: v0.13.0-rc0~1333 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=068b332a6517b082b67b50f62f38f1952329d201;p=qemu.git 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 --- 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;