nicer
authorChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 15:01:51 +0000 (15:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 15:01:51 +0000 (15:01 +0000)
src/dht/gnunet-service-dht_neighbours.c
src/dht/test_dht_multipeer.c

index 6ecebb965ee2103220d741c67e08d1a709aea131..697e49442dbf4d279a2f10e2c839332ce008d212 100644 (file)
@@ -692,6 +692,9 @@ handle_core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
   int current_bucket;
   struct P2PPendingMessage *pos;
 
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+             "Peer `%s' disconnected!\n",
+             GNUNET_i2s (peer));
   /* Check for disconnect from self message */
   if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity)))
     return;
index 610740a4e7f0d992b68ceaa47ac28fd7c974bccd..3db2e1e5e6ff4fe42691e635f4c769b72b30ba1c 100644 (file)
@@ -385,7 +385,8 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp,
             test_get->uid);
     for (i = 0; i < get_path_length; i++)
       fprintf (stderr, "%s%s", i == 0 ? "" : "->", GNUNET_i2s (&get_path[i]));
-    fprintf (stderr, "->%s\n",
+    fprintf (stderr, "%s%s\n",
+            get_path_length > 0 ? "->":"",
             GNUNET_i2s (&test_get->daemon->id));
   }
 #endif