[PATCH 4/4] rpc: Add some debug messages to virNetClient

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

 



---
 src/rpc/virnetclient.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
index c99e87c..025d270 100644
--- a/src/rpc/virnetclient.c
+++ b/src/rpc/virnetclient.c
@@ -1040,6 +1040,7 @@ static bool virNetClientIOEventLoopRemoveDone(virNetClientCallPtr call,
         VIR_DEBUG("Waking up sleep %p", call);
         virCondSignal(&call->cond);
     } else {
+        VIR_DEBUG("Removing completed call %p", call);
         if (call->expectReply)
             VIR_WARN("Got a call expecting a reply but without a waiting thread");
         ignore_value(virCondDestroy(&call->cond));
@@ -1070,6 +1071,8 @@ static bool virNetClientIOEventLoopRemoveNonBlocking(virNetClientCallPtr call,
         if (call->haveThread) {
             VIR_DEBUG("Waking up sleep %p", call);
             virCondSignal(&call->cond);
+        } else {
+            VIR_DEBUG("Keeping unfinished call %p in the list", call);
         }
         return false;
     } else {
@@ -1081,6 +1084,7 @@ static bool virNetClientIOEventLoopRemoveNonBlocking(virNetClientCallPtr call,
             VIR_DEBUG("Waking up sleep %p", call);
             virCondSignal(&call->cond);
         } else {
+            VIR_DEBUG("Removing call %p", call);
             if (call->expectReply)
                 VIR_WARN("Got a call expecting a reply but without a waiting thread");
             ignore_value(virCondDestroy(&call->cond));
-- 
1.7.8.rc3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]