qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 21/21] Monitor: Report more than one error in handle


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 21/21] Monitor: Report more than one error in handlers
Date: Wed, 10 Feb 2010 23:50:07 -0200

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 <address@hidden>
---
 monitor.c |    3 ++-
 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;
-- 
1.6.6





reply via email to

[Prev in Thread] Current Thread [Next in Thread]