aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2011-11-22 15:14:43 +0100
committerJiri Denemark <jdenemar@redhat.com>2011-11-24 11:44:08 +0100
commit2afc5a7bbfae78377c6f4a4d078be0e4eaaae733 (patch)
tree1f7b34a417c8565095518f608365dc3fd82cddb2
parentrpc: Fix handling of non-blocking calls that could not be sent (diff)
downloadlibvirt-2afc5a7bbfae78377c6f4a4d078be0e4eaaae733.tar.gz
libvirt-2afc5a7bbfae78377c6f4a4d078be0e4eaaae733.tar.bz2
libvirt-2afc5a7bbfae78377c6f4a4d078be0e4eaaae733.zip
rpc: Add some debug messages to virNetClient
-rw-r--r--src/rpc/virnetclient.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
index c99e87c90..025d270af 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));