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/arm/test_exponential_backoff.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r-- | src/arm/test_exponential_backoff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 029ed145a..df0efb7f5 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c | |||
@@ -303,15 +303,15 @@ do_nothing_restarted_notify_task (void *cls, | |||
303 | #if LOG_BACKOFF | 303 | #if LOG_BACKOFF |
304 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) | 304 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
305 | { | 305 | { |
306 | fprintf (killLogFilePtr, "%d.Reason is shutdown!\n", trialCount); | 306 | FPRINTF (killLogFilePtr, "%d.Reason is shutdown!\n", trialCount); |
307 | } | 307 | } |
308 | else if ((tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0) | 308 | else if ((tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0) |
309 | { | 309 | { |
310 | fprintf (killLogFilePtr, "%d.Reason is timeout!\n", trialCount); | 310 | FPRINTF (killLogFilePtr, "%d.Reason is timeout!\n", trialCount); |
311 | } | 311 | } |
312 | else if ((tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE) != 0) | 312 | else if ((tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE) != 0) |
313 | { | 313 | { |
314 | fprintf (killLogFilePtr, "%d.Service is running!\n", trialCount); | 314 | FPRINTF (killLogFilePtr, "%d.Service is running!\n", trialCount); |
315 | } | 315 | } |
316 | #endif | 316 | #endif |
317 | GNUNET_SCHEDULER_add_now (&kill_task, &a); | 317 | GNUNET_SCHEDULER_add_now (&kill_task, &a); |
@@ -345,7 +345,7 @@ kill_task (void *cbData, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
345 | waitedFor = GNUNET_TIME_absolute_get_duration (startedWaitingAt); | 345 | waitedFor = GNUNET_TIME_absolute_get_duration (startedWaitingAt); |
346 | 346 | ||
347 | #if LOG_BACKOFF | 347 | #if LOG_BACKOFF |
348 | fprintf (killLogFilePtr, "Waited for: %llu ms\n", | 348 | FPRINTF (killLogFilePtr, "Waited for: %llu ms\n", |
349 | (unsigned long long) waitedFor.rel_value); | 349 | (unsigned long long) waitedFor.rel_value); |
350 | #endif | 350 | #endif |
351 | } | 351 | } |