From: Julius Bünger Date: Tue, 17 Feb 2015 03:38:42 +0000 (+0000) Subject: - cleaned test code X-Git-Tag: initial-import-from-subversion-38251~2300 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b09e38d61b47755964855e572ee87ffe01848ceb;p=oweals%2Fgnunet.git - cleaned test code --- 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); }