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/util/test_common_logging_runtime_loglevels.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/util/test_common_logging_runtime_loglevels.c')
-rw-r--r-- | src/util/test_common_logging_runtime_loglevels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c index 9b5b1228a..51123d9b3 100644 --- a/src/util/test_common_logging_runtime_loglevels.c +++ b/src/util/test_common_logging_runtime_loglevels.c | |||
@@ -171,7 +171,7 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
171 | buf_ptr += rd; | 171 | buf_ptr += rd; |
172 | bytes += rd; | 172 | bytes += rd; |
173 | #if VERBOSE | 173 | #if VERBOSE |
174 | fprintf (stderr, "got %d bytes, reading more\n", rd); | 174 | FPRINTF (stderr, "got %d bytes, reading more\n", rd); |
175 | #endif | 175 | #endif |
176 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, | 176 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, |
177 | stdout_read_handle, &read_call, | 177 | stdout_read_handle, &read_call, |
@@ -180,7 +180,7 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
180 | } | 180 | } |
181 | 181 | ||
182 | #if VERBOSE | 182 | #if VERBOSE |
183 | fprintf (stderr, "bytes is %d:%s\n", bytes, buf); | 183 | FPRINTF (stderr, "bytes is %d:%s\n", bytes, buf); |
184 | #endif | 184 | #endif |
185 | 185 | ||
186 | /* +------CHILD OUTPUT-- | 186 | /* +------CHILD OUTPUT-- |
@@ -251,7 +251,7 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
251 | &delays[7], level))) | 251 | &delays[7], level))) |
252 | { | 252 | { |
253 | if (bytes == 20 * 16) | 253 | if (bytes == 20 * 16) |
254 | fprintf (stderr, "Ran out of buffer space!\n"); | 254 | FPRINTF (stderr, "%s", "Ran out of buffer space!\n"); |
255 | GNUNET_break (0); | 255 | GNUNET_break (0); |
256 | ok = 2; | 256 | ok = 2; |
257 | GNUNET_SCHEDULER_cancel (die_task); | 257 | GNUNET_SCHEDULER_cancel (die_task); |