diff options
author | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
commit | 6e599264ad13e8fc105493d74d7c11d46f8739ed (patch) | |
tree | 169bef1ecbade5a659831fb169f3ae6943af127f /src/transport/test_transport_address_switch.c | |
parent | 4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff) | |
download | gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip |
first step to remove plibc
Diffstat (limited to 'src/transport/test_transport_address_switch.c')
-rw-r--r-- | src/transport/test_transport_address_switch.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c index 98f1170ff..4cc63766e 100644 --- a/src/transport/test_transport_address_switch.c +++ b/src/transport/test_transport_address_switch.c | |||
@@ -217,10 +217,10 @@ custom_shutdown (void *cls) | |||
217 | } | 217 | } |
218 | 218 | ||
219 | result = 0; | 219 | result = 0; |
220 | FPRINTF (stderr, "\n"); | 220 | fprintf (stderr, "\n"); |
221 | if (stats[0].switch_attempts > 0) | 221 | if (stats[0].switch_attempts > 0) |
222 | { | 222 | { |
223 | FPRINTF ( | 223 | fprintf ( |
224 | stderr, | 224 | stderr, |
225 | "Peer 1 tried %u times to switch and succeeded %u times, failed %u times\n", | 225 | "Peer 1 tried %u times to switch and succeeded %u times, failed %u times\n", |
226 | stats[0].switch_attempts, | 226 | stats[0].switch_attempts, |
@@ -234,13 +234,13 @@ custom_shutdown (void *cls) | |||
234 | } | 234 | } |
235 | else if (stats[0].addresses_avail > 1) | 235 | else if (stats[0].addresses_avail > 1) |
236 | { | 236 | { |
237 | FPRINTF (stderr, | 237 | fprintf (stderr, |
238 | "Peer 1 had %u addresses available, but did not try to switch\n", | 238 | "Peer 1 had %u addresses available, but did not try to switch\n", |
239 | stats[0].addresses_avail); | 239 | stats[0].addresses_avail); |
240 | } | 240 | } |
241 | if (stats[1].switch_attempts > 0) | 241 | if (stats[1].switch_attempts > 0) |
242 | { | 242 | { |
243 | FPRINTF ( | 243 | fprintf ( |
244 | stderr, | 244 | stderr, |
245 | "Peer 2 tried %u times to switch and succeeded %u times, failed %u times\n", | 245 | "Peer 2 tried %u times to switch and succeeded %u times, failed %u times\n", |
246 | stats[1].switch_attempts, | 246 | stats[1].switch_attempts, |
@@ -254,7 +254,7 @@ custom_shutdown (void *cls) | |||
254 | } | 254 | } |
255 | else if (stats[1].addresses_avail > 1) | 255 | else if (stats[1].addresses_avail > 1) |
256 | { | 256 | { |
257 | FPRINTF (stderr, | 257 | fprintf (stderr, |
258 | "Peer 2 had %u addresses available, but did not try to switch\n", | 258 | "Peer 2 had %u addresses available, but did not try to switch\n", |
259 | stats[1].addresses_avail); | 259 | stats[1].addresses_avail); |
260 | } | 260 | } |
@@ -262,14 +262,14 @@ custom_shutdown (void *cls) | |||
262 | if (((stats[0].switch_attempts > 0) || (stats[1].switch_attempts > 0)) && | 262 | if (((stats[0].switch_attempts > 0) || (stats[1].switch_attempts > 0)) && |
263 | (bytes_sent_after_switch == 0)) | 263 | (bytes_sent_after_switch == 0)) |
264 | { | 264 | { |
265 | FPRINTF (stderr, "No data sent after switching!\n"); | 265 | fprintf (stderr, "No data sent after switching!\n"); |
266 | GNUNET_break (0); | 266 | GNUNET_break (0); |
267 | result++; | 267 | result++; |
268 | } | 268 | } |
269 | if (((stats[0].switch_attempts > 0) || (stats[1].switch_attempts > 0)) && | 269 | if (((stats[0].switch_attempts > 0) || (stats[1].switch_attempts > 0)) && |
270 | (bytes_recv_after_switch == 0)) | 270 | (bytes_recv_after_switch == 0)) |
271 | { | 271 | { |
272 | FPRINTF (stderr, "No data received after switching!\n"); | 272 | fprintf (stderr, "No data received after switching!\n"); |
273 | GNUNET_break (0); | 273 | GNUNET_break (0); |
274 | result++; | 274 | result++; |
275 | } | 275 | } |
@@ -353,11 +353,11 @@ progress_indicator (void *cls) | |||
353 | counter++; | 353 | counter++; |
354 | if ((TIMEOUT.rel_value_us / 1000 / 1000LL) < counter) | 354 | if ((TIMEOUT.rel_value_us / 1000 / 1000LL) < counter) |
355 | { | 355 | { |
356 | FPRINTF (stderr, "%s", ".\n"); | 356 | fprintf (stderr, "%s", ".\n"); |
357 | } | 357 | } |
358 | else | 358 | else |
359 | { | 359 | { |
360 | FPRINTF (stderr, "%s", "."); | 360 | fprintf (stderr, "%s", "."); |
361 | measure_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, | 361 | measure_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, |
362 | &progress_indicator, | 362 | &progress_indicator, |
363 | NULL); | 363 | NULL); |