diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-17 09:34:29 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-17 09:34:29 +0000 |
commit | e3e29708ab1a04a7bab722d928baab7bec1b0320 (patch) | |
tree | 92dc8f899480a5d03df7443900738992b2d57248 /src/nse | |
parent | 4bfb9cfa9d061c1cd365c12f9f2f5600de35edd8 (diff) | |
download | gnunet-e3e29708ab1a04a7bab722d928baab7bec1b0320.tar.gz gnunet-e3e29708ab1a04a7bab722d928baab7bec1b0320.zip |
- style
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 41f12e59d..d55e61e60 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -307,7 +307,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
307 | if (GNUNET_YES == shutting_down) | 307 | if (GNUNET_YES == shutting_down) |
308 | return; | 308 | return; |
309 | shutting_down = GNUNET_YES; | 309 | shutting_down = GNUNET_YES; |
310 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending test.\n"); | 310 | LOG_DEBUG ("Ending test.\n"); |
311 | close_monitor_connections (); | 311 | close_monitor_connections (); |
312 | if (NULL != data_file) | 312 | if (NULL != data_file) |
313 | { | 313 | { |
@@ -531,15 +531,14 @@ connect_nse_service () | |||
531 | 531 | ||
532 | if (0 == connection_limit) | 532 | if (0 == connection_limit) |
533 | return; | 533 | return; |
534 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connecting to nse service of peers\n"); | 534 | LOG_DEBUG ("Connecting to nse service of peers\n"); |
535 | connections = 0; | 535 | connections = 0; |
536 | for (i = 0; i < num_peers_in_round[current_round]; i++) | 536 | for (i = 0; i < num_peers_in_round[current_round]; i++) |
537 | { | 537 | { |
538 | if ((num_peers_in_round[current_round] > connection_limit) && | 538 | if ((num_peers_in_round[current_round] > connection_limit) && |
539 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) | 539 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) |
540 | continue; | 540 | continue; |
541 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 541 | LOG_DEBUG ("Connecting to nse service of peer %d\n", i); |
542 | "nse-profiler: connecting to nse service of peer %d\n", i); | ||
543 | current_peer = GNUNET_malloc (sizeof (struct NSEPeer)); | 542 | current_peer = GNUNET_malloc (sizeof (struct NSEPeer)); |
544 | current_peer->daemon = daemons[i]; | 543 | current_peer->daemon = daemons[i]; |
545 | current_peer->nse_op | 544 | current_peer->nse_op |
@@ -707,7 +706,7 @@ next_round (void *cls, | |||
707 | { | 706 | { |
708 | if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) | 707 | if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) |
709 | return; | 708 | return; |
710 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnecting nse service of peers\n"); | 709 | LOG_DEBUG ("Disconnecting nse service of peers\n"); |
711 | current_round++; | 710 | current_round++; |
712 | if (current_round == num_rounds) | 711 | if (current_round == num_rounds) |
713 | { | 712 | { |
@@ -806,7 +805,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
806 | 805 | ||
807 | ok = 1; | 806 | ok = 1; |
808 | testing_cfg = GNUNET_CONFIGURATION_dup (cfg); | 807 | testing_cfg = GNUNET_CONFIGURATION_dup (cfg); |
809 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemons.\n"); | 808 | LOG_DEBUG ("Starting daemons.\n"); |
810 | if (NULL == num_peer_spec) | 809 | if (NULL == num_peer_spec) |
811 | { | 810 | { |
812 | fprintf (stderr, "You need to specify the number of peers to run\n"); | 811 | fprintf (stderr, "You need to specify the number of peers to run\n"); |