aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_unreliability_constant.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-30 22:42:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-30 22:42:04 +0000
commit416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch)
tree987f51d9edfddc02afe1524df5e1156b920c71d4 /src/transport/test_transport_api_unreliability_constant.c
parentfceec98e767bce7ad2c24dde73cdcf8837e04013 (diff)
downloadgnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz
gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/transport/test_transport_api_unreliability_constant.c')
-rw-r--r--src/transport/test_transport_api_unreliability_constant.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c
index 3770ebfdb..52bf63833 100644
--- a/src/transport/test_transport_api_unreliability_constant.c
+++ b/src/transport/test_transport_api_unreliability_constant.c
@@ -124,7 +124,7 @@ static struct GNUNET_TIME_Absolute start_time;
124 */ 124 */
125 125
126#if VERBOSE 126#if VERBOSE
127#define OKPP do { ok++; fprintf (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) 127#define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0)
128#else 128#else
129#define OKPP do { ok++; } while (0) 129#define OKPP do { ok++; } while (0)
130#endif 130#endif
@@ -142,7 +142,7 @@ end ()
142 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n"); 142 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n");
143 143
144 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; 144 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value;
145 fprintf (stderr, "\nThroughput was %llu kb/s\n", 145 FPRINTF (stderr, "\nThroughput was %llu kb/s\n",
146 total_bytes * 1000 / 1024 / delta); 146 total_bytes * 1000 / 1024 / delta);
147 GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin); 147 GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin);
148 GAUGER ("TRANSPORT", value_name, (int) (total_bytes * 1000 / 1024 / delta), 148 GAUGER ("TRANSPORT", value_name, (int) (total_bytes * 1000 / 1024 / delta),
@@ -281,7 +281,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
281 n++; 281 n++;
282 if (0 == (n % (TOTAL_MSGS / 100))) 282 if (0 == (n % (TOTAL_MSGS / 100)))
283 { 283 {
284 fprintf (stderr, "."); 284 FPRINTF (stderr, "%s", ".");
285 if (GNUNET_SCHEDULER_NO_TASK != die_task) 285 if (GNUNET_SCHEDULER_NO_TASK != die_task)
286 GNUNET_SCHEDULER_cancel (die_task); 286 GNUNET_SCHEDULER_cancel (die_task);
287 test_failed = GNUNET_YES; 287 test_failed = GNUNET_YES;
@@ -291,7 +291,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
291 { 291 {
292 /* because of starting with 0 */ 292 /* because of starting with 0 */
293 msg_recv++; 293 msg_recv++;
294 fprintf (stderr, "\n"); 294 FPRINTF (stderr, "%s", "\n");
295 end (); 295 end ();
296 } 296 }
297} 297}
@@ -356,7 +356,7 @@ notify_ready (void *cls, size_t size, void *buf)
356 } 356 }
357 else 357 else
358 { 358 {
359 fprintf (stderr, "\n"); 359 FPRINTF (stderr, "%s", "\n");
360 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 360 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
361 "All messages scheduled to be sent!!\n"); 361 "All messages scheduled to be sent!!\n");
362 if (GNUNET_SCHEDULER_NO_TASK != die_task) 362 if (GNUNET_SCHEDULER_NO_TASK != die_task)