From d9e4fecd3a3c6d9dbebefc6b65ce6f98fbeea282 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Sep 2011 20:19:17 +0000 Subject: [PATCH] fix emsg --- src/dht/test_dht_twopeer.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c index 99f1ab9ca..407d8defa 100644 --- a/src/dht/test_dht_twopeer.c +++ b/src/dht/test_dht_twopeer.c @@ -87,7 +87,7 @@ static struct GNUNET_DHT_Handle *peer2dht; /** * Check whether peers successfully shut down. */ -void +static void shutdown_callback (void *cls, const char *emsg) { if (emsg != NULL) @@ -178,14 +178,8 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, if (0 != memcmp (&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode))) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Key returned is not the same key as was searched for!\n"); - fprintf (stderr, - "Looked for key `%s'\n", - GNUNET_h2s (&get_context->peer->hashPubKey)); - fprintf (stderr, - "Got key `%s'\n", - GNUNET_h2s (key)); GNUNET_SCHEDULER_cancel (die_task); die_task = GNUNET_SCHEDULER_add_now (&end_badly, @@ -233,13 +227,13 @@ get_stop_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) get_context->get_attempts); else { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Too many attempts failed, ending test!\n", get_context->get_attempts); GNUNET_SCHEDULER_cancel (die_task); die_task = GNUNET_SCHEDULER_add_now (&end_badly, - "key mismatch in get response!\n"); + "GET attempt failed, ending test!\n"); return; } get_context->get_attempts++; -- 2.25.1