diff options
Diffstat (limited to 'src/dht/test_dht_twopeer.c')
-rw-r--r-- | src/dht/test_dht_twopeer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c index 04198b48b..2adfda0ef 100644 --- a/src/dht/test_dht_twopeer.c +++ b/src/dht/test_dht_twopeer.c | |||
@@ -138,7 +138,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
138 | { | 138 | { |
139 | const char *emsg = cls; | 139 | const char *emsg = cls; |
140 | 140 | ||
141 | fprintf (stderr, "Error: %s\n", emsg); | 141 | FPRINTF (stderr, "Error: %s\n", emsg); |
142 | if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK) | 142 | if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK) |
143 | { | 143 | { |
144 | GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task); | 144 | GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task); |
@@ -183,7 +183,7 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, | |||
183 | if (0 != | 183 | if (0 != |
184 | memcmp (&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode))) | 184 | memcmp (&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode))) |
185 | { | 185 | { |
186 | fprintf (stderr, "??\n"); | 186 | FPRINTF (stderr, "%s", "??\n"); |
187 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 187 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
188 | "Key returned is not the same key as was searched for!\n"); | 188 | "Key returned is not the same key as was searched for!\n"); |
189 | GNUNET_SCHEDULER_cancel (die_task); | 189 | GNUNET_SCHEDULER_cancel (die_task); |
@@ -192,7 +192,7 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, | |||
192 | "key mismatch in get response!\n"); | 192 | "key mismatch in get response!\n"); |
193 | return; | 193 | return; |
194 | } | 194 | } |
195 | fprintf (stderr, "!\n"); | 195 | FPRINTF (stderr, "%s", "!\n"); |
196 | if (get_context->retry_task != GNUNET_SCHEDULER_NO_TASK) | 196 | if (get_context->retry_task != GNUNET_SCHEDULER_NO_TASK) |
197 | { | 197 | { |
198 | GNUNET_SCHEDULER_cancel (get_context->retry_task); | 198 | GNUNET_SCHEDULER_cancel (get_context->retry_task); |
@@ -234,7 +234,7 @@ get_stop_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
234 | get_context->get_attempts); | 234 | get_context->get_attempts); |
235 | else | 235 | else |
236 | { | 236 | { |
237 | fprintf (stderr, "?\n"); | 237 | FPRINTF (stderr, "%s", "?\n"); |
238 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 238 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
239 | "Too many attempts failed, ending test!\n", | 239 | "Too many attempts failed, ending test!\n", |
240 | get_context->get_attempts); | 240 | get_context->get_attempts); |
@@ -244,7 +244,7 @@ get_stop_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
244 | "GET attempt failed, ending test!\n"); | 244 | "GET attempt failed, ending test!\n"); |
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | fprintf (stderr, "."); | 247 | FPRINTF (stderr, "%s", "."); |
248 | get_context->get_attempts++; | 248 | get_context->get_attempts++; |
249 | get_context->retry_task = | 249 | get_context->retry_task = |
250 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply | 250 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply |
@@ -381,7 +381,7 @@ peers_started_callback (void *cls, const struct GNUNET_PeerIdentity *id, | |||
381 | { | 381 | { |
382 | if (emsg != NULL) | 382 | if (emsg != NULL) |
383 | { | 383 | { |
384 | fprintf (stderr, "Failed to start daemon: `%s'\n", emsg); | 384 | FPRINTF (stderr, "Failed to start daemon: `%s'\n", emsg); |
385 | return; | 385 | return; |
386 | } | 386 | } |
387 | GNUNET_assert (id != NULL); | 387 | GNUNET_assert (id != NULL); |