gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35276 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r35276 - gnunet/src/rps
Date: Tue, 17 Feb 2015 04:38:43 +0100

Author: ch3
Date: 2015-02-17 04:38:42 +0100 (Tue, 17 Feb 2015)
New Revision: 35276

Modified:
   gnunet/src/rps/test_rps_multipeer.c
Log:
- cleaned test code

Modified: gnunet/src/rps/test_rps_multipeer.c
===================================================================
--- gnunet/src/rps/test_rps_multipeer.c 2015-02-17 03:38:40 UTC (rev 35275)
+++ gnunet/src/rps/test_rps_multipeer.c 2015-02-17 03:38:42 UTC (rev 35276)
@@ -132,18 +132,22 @@
  * 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);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]