From: Bart Polot Date: Tue, 25 Jun 2013 23:52:13 +0000 (+0000) Subject: - add client connection debug info X-Git-Tag: initial-import-from-subversion-38251~8638 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=456477b0ae532f2736f288322e3d46ec3cc02159;p=oweals%2Fgnunet.git - add client connection debug info --- diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index ce2579b90..00000ed74 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -3963,7 +3963,7 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) struct MeshClient *c; struct MeshClient *next; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected\n"); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected: %p\n", client); if (client == NULL) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " (SERVER DOWN)\n"); @@ -3975,7 +3975,9 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) { if (c->handle != client) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " ... searching\n"); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + " ... searching %p (%u)\n", + c->handle, c->id); c = c->next; continue; } @@ -4021,7 +4023,7 @@ handle_local_new_client (void *cls, struct GNUNET_SERVER_Client *client, uint32_t *p; unsigned int i; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "new client connected\n"); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "new client connected %p\n", client); /* Check data sanity */ size = ntohs (message->size) - sizeof (struct GNUNET_MESH_ClientConnect);