From 4ef6d2d4498d015bec1e2375acfd7caefccbfe1a Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 7 May 2014 10:42:44 +0000 Subject: - log --- src/mesh/gnunet-service-mesh_peer.c | 14 +++++++------- src/mesh/gnunet-service-mesh_tunnel.c | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'src/mesh') diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 8bd4b6567..99f8eb07d 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c @@ -232,16 +232,16 @@ queue_debug (struct MeshPeer *peer) { struct MeshPeerQueue *q; - LOG (GNUNET_ERROR_TYPE_DEBUG, "Messages queued towards %s\n", GMP_2s (peer)); - LOG (GNUNET_ERROR_TYPE_DEBUG, " core tmt rdy: %p\n", peer->core_transmit); + LOG (GNUNET_ERROR_TYPE_DEBUG, "QQQ Messages queued towards %s\n", GMP_2s (peer)); + LOG (GNUNET_ERROR_TYPE_DEBUG, "QQQ core tmt rdy: %p\n", peer->core_transmit); for (q = peer->queue_head; NULL != q; q = q->next) { - LOG (GNUNET_ERROR_TYPE_DEBUG, " - %s %s on %s\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, "QQQ - %s %s on %s\n", GM_m2s (q->type), GM_f2s (q->fwd), GMC_2s (q->c)); } - LOG (GNUNET_ERROR_TYPE_DEBUG, "End queued towards %s\n", GMP_2s (peer)); + LOG (GNUNET_ERROR_TYPE_DEBUG, "QQQ End queued towards %s\n", GMP_2s (peer)); } @@ -926,7 +926,7 @@ queue_send (void *cls, size_t size, void *buf) c = queue->c; dst_id = GNUNET_PEER_resolve2 (peer->id); - LOG (GNUNET_ERROR_TYPE_DEBUG, "* on connection %s\n", GMC_2s (c)); + LOG (GNUNET_ERROR_TYPE_DEBUG, " on connection %s\n", GMC_2s (c)); /* Check if buffer size is enough for the message */ if (queue->size > size) { @@ -1006,7 +1006,7 @@ queue_send (void *cls, size_t size, void *buf) queue = peer_get_first_message (peer); if (NULL != queue) { - LOG (GNUNET_ERROR_TYPE_DEBUG, "* more data!\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, " more data!\n"); if (NULL == peer->core_transmit) { peer->core_transmit = @@ -1031,7 +1031,7 @@ queue_send (void *cls, size_t size, void *buf) // GMC_stop_poll(); FIXME needed? } - LOG (GNUNET_ERROR_TYPE_DEBUG, "* Return %d\n", data_size); + LOG (GNUNET_ERROR_TYPE_DEBUG, " return %d\n", data_size); queue_debug (peer); return data_size; } diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index fbb28f53d..ea7a80e87 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -872,9 +872,9 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message, msg->ttl = htonl (default_ttl); break; default: - LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GM_m2s (type)); GNUNET_break (0); } + LOG (GNUNET_ERROR_TYPE_DEBUG, "type %s\n", GM_m2s (type)); fwd = GMC_is_origin (c, GNUNET_YES); @@ -2797,25 +2797,25 @@ GMT_debug (const struct MeshTunnel3 *t) struct MeshTChannel *iterch; struct MeshTConnection *iterc; - LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL TOWARDS %s\n", GMT_2s (t)); - LOG (GNUNET_ERROR_TYPE_DEBUG, " cstate %s, estate %s\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT DEBUG TUNNEL TOWARDS %s\n", GMT_2s (t)); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT cstate %s, estate %s\n", cstate2s (t->cstate), estate2s (t->estate)); - LOG (GNUNET_ERROR_TYPE_DEBUG, " kx_ctx %p, rekey_task %u\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT kx_ctx %p, rekey_task %u\n", t->kx_ctx, t->rekey_task); - LOG (GNUNET_ERROR_TYPE_DEBUG, " tq_head %p, tq_tail %p\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT tq_head %p, tq_tail %p\n", t->tq_head, t->tq_tail); - LOG (GNUNET_ERROR_TYPE_DEBUG, " destroy %u\n", t->destroy_task); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT destroy %u\n", t->destroy_task); - LOG (GNUNET_ERROR_TYPE_DEBUG, " channels:\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT channels:\n"); for (iterch = t->channel_head; NULL != iterch; iterch = iterch->next) { - LOG (GNUNET_ERROR_TYPE_DEBUG, " - %s\n", GMCH_2s (iterch->ch)); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT - %s\n", GMCH_2s (iterch->ch)); } - LOG (GNUNET_ERROR_TYPE_DEBUG, " connections:\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT connections:\n"); for (iterc = t->connection_head; NULL != iterc; iterc = iterc->next) { - LOG (GNUNET_ERROR_TYPE_DEBUG, " - %s [%u] buf: %u/%u (qn %u/%u)\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT - %s [%u] buf: %u/%u (qn %u/%u)\n", GMC_2s (iterc->c), GMC_get_state (iterc->c), GMC_get_buffer (iterc->c, GNUNET_YES), GMC_get_buffer (iterc->c, GNUNET_NO), @@ -2823,7 +2823,7 @@ GMT_debug (const struct MeshTunnel3 *t) GMC_get_qn (iterc->c, GNUNET_NO)); } - LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL END\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, "TTT DEBUG TUNNEL END\n"); } -- cgit v1.2.3