summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}