From a637a7e7b9b8c16844b630a1e2a94fce6006b30a Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 27 Nov 2013 01:59:58 +0000 Subject: [PATCH 1/1] - log --- src/mesh/gnunet-service-mesh_connection.c | 1 + src/mesh/gnunet-service-mesh_tunnel.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index cc5a19c74..8d2ef4044 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -1517,6 +1517,7 @@ GMC_handle_destroy (void *cls, const struct GNUNET_PeerIdentity *peer, */ GNUNET_STATISTICS_update (stats, "# control on unknown tunnel", 1, GNUNET_NO); + LOG (GNUNET_ERROR_TYPE_DEBUG, " connection unknown: already destroyed?\n"); return GNUNET_OK; } fwd = is_fwd (c, peer); diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 80db8e8eb..a13d88fd5 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -395,7 +395,7 @@ get_connection_allowed (const struct MeshTConnection *tc) * @return GNUNET_OK if message is fine, GNUNET_SYSERR otherwise. */ int -check_ephemeral (struct MeshTunnel3 *t, +check_ephemeral (struct MeshTunnel3 *t, const struct GNUNET_MESH_KX_Ephemeral *msg) { /* Check message size */ @@ -1623,6 +1623,7 @@ GMT_destroy_empty (struct MeshTunnel3 *t) { struct MeshTConnection *iter; + LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel empty: destroying scheduled\n"); for (iter = t->connection_head; NULL != iter; iter = iter->next) { GMC_send_destroy (iter->c); @@ -1964,7 +1965,7 @@ GMT_send_connection_acks (struct MeshTunnel3 *t) unsigned int cs; unsigned int buffer; - LOG (GNUNET_ERROR_TYPE_DEBUG, + LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel send connection ACKs on %s\n", GMT_2s (t)); @@ -2019,7 +2020,7 @@ GMT_send_connection_acks (struct MeshTunnel3 *t) * @param fwd Was this a FWD going message? * @param size Size of the message. */ -static void +static void message_sent (void *cls, struct MeshConnection *c, struct MeshConnectionQueue *q, @@ -2227,4 +2228,4 @@ GMT_2s (const struct MeshTunnel3 *t) return "(NULL)"; return GMP_2s (t->peer); -} \ No newline at end of file +} -- 2.25.1