]> git.proxmox.com Git - qemu.git/commitdiff
Monitor: Report more than one error in handlers
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 11 Feb 2010 01:50:07 +0000 (23:50 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Feb 2010 21:18:18 +0000 (15:18 -0600)
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>
monitor.c

index d9592e9d1cb5a89f621a3c6edb03db8e691a9162..6a64e6e218c86f10ac722fdba864b546f2b9ebf8 100644 (file)
--- 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;