diff options
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 4 | ||||
-rw-r--r-- | src/nse/test_nse_api.c | 4 | ||||
-rw-r--r-- | src/nse/test_nse_multipeer.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 801063b23..43743c47b 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -199,7 +199,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
199 | struct NSEPeer *pos; | 199 | struct NSEPeer *pos; |
200 | 200 | ||
201 | #if VERBOSE | 201 | #if VERBOSE |
202 | fprintf (stderr, "Ending test.\n"); | 202 | FPRINTF (stderr, "%s", "Ending test.\n"); |
203 | #endif | 203 | #endif |
204 | 204 | ||
205 | if (disconnect_task != GNUNET_SCHEDULER_NO_TASK) | 205 | if (disconnect_task != GNUNET_SCHEDULER_NO_TASK) |
@@ -252,7 +252,7 @@ handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp, | |||
252 | GNUNET_free (output_buffer); | 252 | GNUNET_free (output_buffer); |
253 | } | 253 | } |
254 | else | 254 | else |
255 | fprintf (stderr, | 255 | FPRINTF (stderr, |
256 | "Received network size estimate from peer %s. Size: %f std.dev. %f\n", | 256 | "Received network size estimate from peer %s. Size: %f std.dev. %f\n", |
257 | GNUNET_i2s (&peer->daemon->id), estimate, std_dev); | 257 | GNUNET_i2s (&peer->daemon->id), estimate, std_dev); |
258 | 258 | ||
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c index a2f73aaf4..7e0ab0bbc 100644 --- a/src/nse/test_nse_api.c +++ b/src/nse/test_nse_api.c | |||
@@ -93,7 +93,7 @@ check_nse_message (void *cls, struct GNUNET_TIME_Absolute timestamp, | |||
93 | { | 93 | { |
94 | int *ok = cls; | 94 | int *ok = cls; |
95 | 95 | ||
96 | fprintf (stderr, | 96 | FPRINTF (stderr, |
97 | "Received NSE message, estimate %f, standard deviation %f.\n", | 97 | "Received NSE message, estimate %f, standard deviation %f.\n", |
98 | estimate, std_dev); | 98 | estimate, std_dev); |
99 | /* Fantastic check below. Expect NaN, the only thing not equal to itself. */ | 99 | /* Fantastic check below. Expect NaN, the only thing not equal to itself. */ |
@@ -162,7 +162,7 @@ check () | |||
162 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping arm.\n"); | 162 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping arm.\n"); |
163 | stop_arm (&p1); | 163 | stop_arm (&p1); |
164 | if (0 != ok) | 164 | if (0 != ok) |
165 | fprintf (stderr, "No information received from NSE service!\n"); | 165 | FPRINTF (stderr, "%s", "No information received from NSE service!\n"); |
166 | return ok; | 166 | return ok; |
167 | } | 167 | } |
168 | 168 | ||
diff --git a/src/nse/test_nse_multipeer.c b/src/nse/test_nse_multipeer.c index 435cdabf4..4cd5e4349 100644 --- a/src/nse/test_nse_multipeer.c +++ b/src/nse/test_nse_multipeer.c | |||
@@ -93,7 +93,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
93 | struct NSEPeer *pos; | 93 | struct NSEPeer *pos; |
94 | 94 | ||
95 | #if VERBOSE | 95 | #if VERBOSE |
96 | fprintf (stderr, "Ending test.\n"); | 96 | FPRINTF (stderr, "%s", "Ending test.\n"); |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | while (NULL != (pos = peer_head)) | 99 | while (NULL != (pos = peer_head)) |
@@ -122,7 +122,7 @@ handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp, | |||
122 | { | 122 | { |
123 | struct NSEPeer *peer = cls; | 123 | struct NSEPeer *peer = cls; |
124 | 124 | ||
125 | fprintf (stderr, | 125 | FPRINTF (stderr, |
126 | "Received network size estimate from peer %s. logSize: %f std.dev. %f (%f/%u)\n", | 126 | "Received network size estimate from peer %s. logSize: %f std.dev. %f (%f/%u)\n", |
127 | GNUNET_i2s (&peer->daemon->id), estimate, std_dev, | 127 | GNUNET_i2s (&peer->daemon->id), estimate, std_dev, |
128 | GNUNET_NSE_log_estimate_to_n (estimate), num_peers); | 128 | GNUNET_NSE_log_estimate_to_n (estimate), num_peers); |
@@ -136,7 +136,7 @@ connect_nse_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
136 | unsigned int i; | 136 | unsigned int i; |
137 | 137 | ||
138 | #if VERBOSE | 138 | #if VERBOSE |
139 | fprintf (stderr, "TEST_NSE_MULTIPEER: connecting to nse service of peers\n"); | 139 | FPRINTF (stderr, "%s", "TEST_NSE_MULTIPEER: connecting to nse service of peers\n"); |
140 | #endif | 140 | #endif |
141 | for (i = 0; i < num_peers; i++) | 141 | for (i = 0; i < num_peers; i++) |
142 | { | 142 | { |