gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32429 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32429 - gnunet/src/mesh
Date: Wed, 19 Feb 2014 21:02:16 +0100

Author: bartpolot
Date: 2014-02-19 21:02:16 +0100 (Wed, 19 Feb 2014)
New Revision: 32429

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
Log:
- reduce debug messages amount of hello operations

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-02-19 20:02:15 UTC (rev 
32428)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-02-19 20:02:16 UTC (rev 
32429)
@@ -1881,23 +1881,23 @@
   struct GNUNET_HELLO_Message *old;
   size_t size;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "New hello for %s\n", GMP_2s (peer));
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "set hello for %s\n", GMP_2s (peer));
   if (NULL == hello)
     return;
 
   old = GMP_get_hello (peer);
-  LOG (GNUNET_ERROR_TYPE_DEBUG, " old hello %p\n", old);
   if (NULL == old)
   {
     size = GNUNET_HELLO_size (hello);
-    LOG (GNUNET_ERROR_TYPE_DEBUG, " new size: %u\n", size);
+    LOG (GNUNET_ERROR_TYPE_DEBUG, " new (%u bytes)\n", size);
     peer->hello = GNUNET_malloc (size);
     memcpy (peer->hello, hello, size);
   }
   else
   {
     peer->hello = GNUNET_HELLO_merge (old, hello);
-    LOG (GNUNET_ERROR_TYPE_DEBUG, " merge! %p\n", peer->hello);
+    LOG (GNUNET_ERROR_TYPE_DEBUG, " merge into %p (%u bytes)\n",
+         peer->hello, GNUNET_HELLO_size (hello));
     GNUNET_free (old);
   }
 }
@@ -1916,7 +1916,6 @@
   struct GNUNET_TIME_Absolute expiration;
   struct GNUNET_TIME_Relative remaining;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "Get hello\n");
   if (NULL == peer->hello)
     return NULL;
 
@@ -1924,7 +1923,7 @@
   remaining = GNUNET_TIME_absolute_get_remaining (expiration);
   if (0 == remaining.rel_value_us)
   {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, " expired on %s\n",
+    LOG (GNUNET_ERROR_TYPE_DEBUG, " get - hello expired on %s\n",
          GNUNET_STRINGS_absolute_time_to_string (expiration));
     GNUNET_free (peer->hello);
     peer->hello = NULL;




reply via email to

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