logging
authorChristian Grothoff <christian@grothoff.org>
Mon, 12 Apr 2010 20:09:55 +0000 (20:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 12 Apr 2010 20:09:55 +0000 (20:09 +0000)
src/core/gnunet-service-core.c

index b2a958e97a9c83cded2338e19ec7c9778e6f0a4f..a9bc1328830747a374226042c8d159cf928bc735 100644 (file)
@@ -1323,7 +1323,14 @@ notify_encrypted_transmit_ready (void *cls, size_t size, void *buf)
   n->th = NULL;
   m = n->encrypted_head;
   if (m == NULL)
-    return 0;
+    {
+#if DEBUG_CORE
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                  "Encrypted message queue empty, no messages added to buffer for `%4s'\n",
+                 GNUNET_i2s (&n->peer));
+#endif
+      return 0;
+    }
   GNUNET_CONTAINER_DLL_remove (n->encrypted_head,
                               n->encrypted_tail,
                               m);
@@ -3416,12 +3423,6 @@ handle_transport_receive (void *cls,
   up = (n->status == PEER_STATE_KEY_CONFIRMED);
   type = ntohs (message->type);
   size = ntohs (message->size);
-#if DEBUG_HANDSHAKE
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Received message of type %u from `%4s'\n",
-             (unsigned int) type,
-             GNUNET_i2s (peer));
-#endif
   switch (type)
     {
     case GNUNET_MESSAGE_TYPE_CORE_SET_KEY: