diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
commit | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch) | |
tree | 987f51d9edfddc02afe1524df5e1156b920c71d4 /src/core/test_core_api_reliability.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index b2079ba35..434886d42 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -134,7 +134,7 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
134 | GNUNET_TRANSPORT_disconnect (p2.th); | 134 | GNUNET_TRANSPORT_disconnect (p2.th); |
135 | p2.th = NULL; | 135 | p2.th = NULL; |
136 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; | 136 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; |
137 | fprintf (stderr, "\nThroughput was %llu kb/s\n", | 137 | FPRINTF (stderr, "\nThroughput was %llu kb/s\n", |
138 | total_bytes * 1000 / 1024 / delta); | 138 | total_bytes * 1000 / 1024 / delta); |
139 | GAUGER ("CORE", "Core throughput/s", total_bytes * 1000 / 1024 / delta, | 139 | GAUGER ("CORE", "Core throughput/s", total_bytes * 1000 / 1024 / delta, |
140 | "kb/s"); | 140 | "kb/s"); |
@@ -353,7 +353,7 @@ process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
353 | #endif | 353 | #endif |
354 | n++; | 354 | n++; |
355 | if (0 == (n % (TOTAL_MSGS / 100))) | 355 | if (0 == (n % (TOTAL_MSGS / 100))) |
356 | fprintf (stderr, "."); | 356 | FPRINTF (stderr, "%s", "."); |
357 | if (n == TOTAL_MSGS) | 357 | if (n == TOTAL_MSGS) |
358 | { | 358 | { |
359 | GNUNET_SCHEDULER_cancel (err_task); | 359 | GNUNET_SCHEDULER_cancel (err_task); |