summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-02-17 03:38:42 +0000
committerJulius Bünger <buenger@mytum.de>2015-02-17 03:38:42 +0000
commitb09e38d61b47755964855e572ee87ffe01848ceb (patch)
treee27fae73452b5cac908286d14101346b6037af19 /src
parent5c336ce9a914cdd62982844381fc6b8e77681c46 (diff)
- cleaned test code
Diffstat (limited to 'src')
-rw-r--r--src/rps/test_rps_multipeer.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/rps/test_rps_multipeer.c b/src/rps/test_rps_multipeer.c
index de5dfac56..9367efff2 100644
--- a/src/rps/test_rps_multipeer.c
+++ b/src/rps/test_rps_multipeer.c
@@ -132,18 +132,22 @@ request_peers (void *cls,
* Seed peers.
*/
void
-seed_peers (void *cls,
- const struct GNUNET_SCHEDULER_TaskContext *tc)
+seed_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
unsigned int amount;
struct RPSPeer *peer = (struct RPSPeer *) cls;
+ unsigned int i;
- GNUNET_assert (1 >= portion &&
- 0 < portion);
+ GNUNET_assert (1 >= portion
+ && 0 < portion);
amount = portion * NUM_PEERS;
- // TODO log
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding peers:\n");
+ for (i = 0 ; i < amount ; i++)
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding %u. peer: %s\n",
+ i,
+ GNUNET_i2s (&rps_peer_ids[i]));
GNUNET_RPS_seed_ids (peer->rps_handle, amount, rps_peer_ids);
}