aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.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_quota_compliance.c
parentfceec98e767bce7ad2c24dde73cdcf8837e04013 (diff)
downloadgnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz
gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 5d9cfff19..0ef708b62 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -130,7 +130,7 @@ static struct GNUNET_TIME_Absolute start_time;
130 */ 130 */
131 131
132#if VERBOSE 132#if VERBOSE
133#define OKPP do { ok++; fprintf (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) 133#define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0)
134#else 134#else
135#define OKPP do { ok++; } while (0) 135#define OKPP do { ok++; } while (0)
136#endif 136#endif
@@ -147,7 +147,7 @@ end ()
147 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; 147 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value;
148 datarate = (total_bytes_sent * 1000) / delta; 148 datarate = (total_bytes_sent * 1000) / delta;
149 149
150 fprintf (stderr, "Throughput was %llu b/s\n", datarate); 150 FPRINTF (stderr, "Throughput was %llu b/s\n", datarate);
151 151
152 test_failed = GNUNET_NO; 152 test_failed = GNUNET_NO;
153 if (datarate > quota_in_p2) 153 if (datarate > quota_in_p2)
@@ -365,7 +365,7 @@ notify_ready (void *cls, size_t size, void *buf)
365 total_bytes_sent += ret; 365 total_bytes_sent += ret;
366 if (n == TOTAL_MSGS) 366 if (n == TOTAL_MSGS)
367 { 367 {
368 fprintf (stderr, "\n"); 368 FPRINTF (stderr, "%s", "\n");
369 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All messages sent\n"); 369 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All messages sent\n");
370 } 370 }
371 return ret; 371 return ret;
@@ -417,12 +417,12 @@ measure (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
417 counter++; 417 counter++;
418 if ((DURATION.rel_value / 1000) < counter) 418 if ((DURATION.rel_value / 1000) < counter)
419 { 419 {
420 fprintf (stderr, ".\n"); 420 FPRINTF (stderr, "%s", ".\n");
421 GNUNET_SCHEDULER_add_now (&end, NULL); 421 GNUNET_SCHEDULER_add_now (&end, NULL);
422 } 422 }
423 else 423 else
424 { 424 {
425 fprintf (stderr, "."); 425 FPRINTF (stderr, "%s", ".");
426 measure_task = 426 measure_task =
427 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &measure, NULL); 427 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &measure, NULL);
428 } 428 }