gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10889 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r10889 - gnunet/src/core
Date: Mon, 12 Apr 2010 22:09:55 +0200

Author: grothoff
Date: 2010-04-12 22:09:55 +0200 (Mon, 12 Apr 2010)
New Revision: 10889

Modified:
   gnunet/src/core/gnunet-service-core.c
Log:
logging

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2010-04-12 20:09:45 UTC (rev 
10888)
+++ gnunet/src/core/gnunet-service-core.c       2010-04-12 20:09:55 UTC (rev 
10889)
@@ -1323,7 +1323,14 @@
   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 @@
   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:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]