diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:38 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:38 +0000 |
commit | 5b7771ce97e79d7536e6a4256e0e7eb7a1d241d2 (patch) | |
tree | 056e557eca9693953c3dc683ba3e792b0a5ecc74 /src | |
parent | 77249130e284e2c39ad478ed06c102d7d538b361 (diff) | |
download | gnunet-5b7771ce97e79d7536e6a4256e0e7eb7a1d241d2.tar.gz gnunet-5b7771ce97e79d7536e6a4256e0e7eb7a1d241d2.zip |
-debug
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-mesh-profiler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 88d3ab9e5..ec2d64606 100644 --- a/src/mesh/gnunet-mesh-profiler.c +++ b/src/mesh/gnunet-mesh-profiler.c | |||
@@ -643,7 +643,8 @@ incoming_channel (void *cls, struct GNUNET_MESH_Channel *channel, | |||
643 | 643 | ||
644 | peer = GNUNET_CONTAINER_multipeermap_get (ids, initiator); | 644 | peer = GNUNET_CONTAINER_multipeermap_get (ids, initiator); |
645 | GNUNET_assert (NULL != peer); | 645 | GNUNET_assert (NULL != peer); |
646 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u <= %u\n", n, get_index (peer)); | 646 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u <= %u %p\n", |
647 | n, get_index (peer), channel); | ||
647 | peers[n].incoming_ch = channel; | 648 | peers[n].incoming_ch = channel; |
648 | 649 | ||
649 | if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) | 650 | if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) |
@@ -674,7 +675,7 @@ channel_cleaner (void *cls, const struct GNUNET_MESH_Channel *channel, | |||
674 | struct MeshPeer *peer = &peers[n]; | 675 | struct MeshPeer *peer = &peers[n]; |
675 | 676 | ||
676 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 677 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
677 | "Incoming channel disconnected at peer %ld\n", n); | 678 | "Incoming channel %p disconnected at peer %ld\n", channel, n); |
678 | if (peer->ch == channel) | 679 | if (peer->ch == channel) |
679 | peer->ch = NULL; | 680 | peer->ch = NULL; |
680 | } | 681 | } |
@@ -728,8 +729,8 @@ start_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
728 | peers[i].ch = GNUNET_MESH_channel_create (peers[i].mesh, NULL, | 729 | peers[i].ch = GNUNET_MESH_channel_create (peers[i].mesh, NULL, |
729 | &peers[i].dest->id, | 730 | &peers[i].dest->id, |
730 | 1, flags); | 731 | 1, flags); |
731 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u => %u\n", | 732 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u => %u %p\n", |
732 | i, get_index (peers[i].dest)); | 733 | i, get_index (peers[i].dest), peers[i].ch); |
733 | peers[i].ping_task = GNUNET_SCHEDULER_add_delayed (delay_ms_rnd (2000), | 734 | peers[i].ping_task = GNUNET_SCHEDULER_add_delayed (delay_ms_rnd (2000), |
734 | &ping, &peers[i]); | 735 | &ping, &peers[i]); |
735 | } | 736 | } |