gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r10514 - gnunet/src/core
Date: Mon, 8 Mar 2010 15:37:07 +0100

Author: grothoff
Date: 2010-03-08 15:37:07 +0100 (Mon, 08 Mar 2010)
New Revision: 10514

Modified:
   gnunet/src/core/core.h
   gnunet/src/core/gnunet-service-core.c
Log:
nodeb

Modified: gnunet/src/core/core.h
===================================================================
--- gnunet/src/core/core.h      2010-03-08 14:36:59 UTC (rev 10513)
+++ gnunet/src/core/core.h      2010-03-08 14:37:07 UTC (rev 10514)
@@ -29,7 +29,7 @@
 /**
  * General core debugging.
  */
-#define DEBUG_CORE GNUNET_YES
+#define DEBUG_CORE GNUNET_NO
 
 /**
  * Debugging interaction core-clients.

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2010-03-08 14:36:59 UTC (rev 
10513)
+++ gnunet/src/core/gnunet-service-core.c       2010-03-08 14:37:07 UTC (rev 
10514)
@@ -43,7 +43,7 @@
 
 #define DEBUG_HANDSHAKE GNUNET_NO
 
-#define DEBUG_CORE_QUOTA GNUNET_YES
+#define DEBUG_CORE_QUOTA GNUNET_NO
 
 /**
  * Receive and send buffer windows grow over time.  For
@@ -1750,9 +1750,11 @@
 {
   struct Neighbour *n = cls;
 
+#if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Retrying key transmission to `%4s'\n",
              GNUNET_i2s (&n->peer));
+#endif
   n->retry_set_key_task = GNUNET_SCHEDULER_NO_TASK;
   n->set_key_retry_frequency =
     GNUNET_TIME_relative_multiply (n->set_key_retry_frequency, 2);
@@ -2736,7 +2738,8 @@
       return;
     }
 #if DEBUG_CORE
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Decrypting key material.\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+             "Decrypting key material.\n");
 #endif  
   if ((GNUNET_CRYPTO_rsa_decrypt (my_private_key,
                                   &m->encrypted_key,
@@ -3082,10 +3085,12 @@
   /* process decrypted message(s) */
   if (n->bw_out_external_limit.value__ != pt->inbound_bw_limit.value__)
     {
+#if DEBUG_CORE_SET_QUOTA
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Received %u b/s as new inbound limit for peer `%4s'\n",
                  (unsigned int) ntohl (pt->inbound_bw_limit.value__),
                  GNUNET_i2s (&n->peer));
+#endif
       n->bw_out_external_limit = pt->inbound_bw_limit;
       n->bw_out = GNUNET_BANDWIDTH_value_min (n->bw_out_external_limit,
                                              n->bw_out_internal_limit);





reply via email to

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