aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-16 22:50:36 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-16 22:50:36 +0000
commita2508bce6dc23f0ada127682dc16d59e82d2e78e (patch)
tree4b385fdcd54f08812971ae0ed756d06dd990fd51 /src/mesh/gnunet-service-mesh_tunnel.c
parent64c3c040c4bdfcdea250ef71df55d0314f4338cb (diff)
downloadgnunet-a2508bce6dc23f0ada127682dc16d59e82d2e78e.tar.gz
gnunet-a2508bce6dc23f0ada127682dc16d59e82d2e78e.zip
- debug info
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index f1a3370d4..c045e67d5 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -2492,9 +2492,14 @@ GMT_debug (const struct MeshTunnel3 *t)
2492 struct MeshTChannel *iterch; 2492 struct MeshTChannel *iterch;
2493 struct MeshTConnection *iterc; 2493 struct MeshTConnection *iterc;
2494 2494
2495 LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG %s\n", GMT_2s (t)); 2495 LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL TOWARDS %s\n", GMT_2s (t));
2496 LOG (GNUNET_ERROR_TYPE_DEBUG, " cstate %s, estate %s\n", 2496 LOG (GNUNET_ERROR_TYPE_DEBUG, " cstate %s, estate %s\n",
2497 cstate2s (t->cstate), estate2s (t->estate)); 2497 cstate2s (t->cstate), estate2s (t->estate));
2498 LOG (GNUNET_ERROR_TYPE_DEBUG, " kx_ctx %p, rekey_task %u\n",
2499 t->kx_ctx, t->rekey_task);
2500 LOG (GNUNET_ERROR_TYPE_DEBUG, " tq_head %p, tq_tail %p\n",
2501 t->tq_head, t->tq_tail);
2502 LOG (GNUNET_ERROR_TYPE_DEBUG, " destroy %u\n", t->destroy);
2498 2503
2499 LOG (GNUNET_ERROR_TYPE_DEBUG, " channels:\n"); 2504 LOG (GNUNET_ERROR_TYPE_DEBUG, " channels:\n");
2500 for (iterch = t->channel_head; NULL != iterch; iterch = iterch->next) 2505 for (iterch = t->channel_head; NULL != iterch; iterch = iterch->next)
@@ -2505,8 +2510,13 @@ GMT_debug (const struct MeshTunnel3 *t)
2505 LOG (GNUNET_ERROR_TYPE_DEBUG, " connections:\n"); 2510 LOG (GNUNET_ERROR_TYPE_DEBUG, " connections:\n");
2506 for (iterc = t->connection_head; NULL != iterc; iterc = iterc->next) 2511 for (iterc = t->connection_head; NULL != iterc; iterc = iterc->next)
2507 { 2512 {
2508 LOG (GNUNET_ERROR_TYPE_DEBUG, " - %s\n", GMC_2s (iterc->c)); 2513 LOG (GNUNET_ERROR_TYPE_DEBUG, " - %s [%u] buf: %u/%u (qn %u/%u)\n",
2514 GMC_2s (iterc->c), GMC_get_state (iterc->c),
2515 GMC_get_buffer (iterc->c, GNUNET_YES),
2516 GMC_get_buffer (iterc->c, GNUNET_NO),
2517 GMC_get_qn (iterc->c, GNUNET_YES),
2518 GMC_get_qn (iterc->c, GNUNET_NO));
2509 } 2519 }
2510 2520
2511 LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG END\n"); 2521 LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL END\n");
2512} 2522}