fix emsg
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Sep 2011 20:19:17 +0000 (20:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Sep 2011 20:19:17 +0000 (20:19 +0000)
src/dht/test_dht_twopeer.c

index 99f1ab9cac9714adbe38043a465c1536df3b0491..407d8defaf18be6aa2b63c4865492e73398a3e63 100644 (file)
@@ -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++;