dbg
authorChristian Grothoff <christian@grothoff.org>
Thu, 25 Mar 2010 12:31:13 +0000 (12:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 25 Mar 2010 12:31:13 +0000 (12:31 +0000)
src/core/core.h
src/core/gnunet-service-core.c
src/fs/fs_test_lib_data.conf
src/fs/gnunet-service-fs.c

index ea2925797346cf206be11efcb5fd7fc93badeb5d..45d138140ffe7dd538e99ba049d9499e7f781fcb 100644 (file)
@@ -29,7 +29,7 @@
 /**
  * General core debugging.
  */
-#define DEBUG_CORE GNUNET_NO
+#define DEBUG_CORE GNUNET_YES
 
 /**
  * Debugging interaction core-clients.
index 65b6d739764404d35572d339a610731360d8bfa6..53006a6d6f21d251d15cf58fae6475b44f62874e 100644 (file)
@@ -42,9 +42,9 @@
 #include "core.h"
 
 
-#define DEBUG_HANDSHAKE GNUNET_YES
+#define DEBUG_HANDSHAKE GNUNET_NO
 
-#define DEBUG_CORE_QUOTA GNUNET_NO
+#define DEBUG_CORE_QUOTA GNUNET_YES
 
 /**
  * Receive and send buffer windows grow over time.  For
@@ -1747,9 +1747,9 @@ batch_message (struct Neighbour *n,
                               GNUNET_YES,
                               GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND);   
 #if DEBUG_HANDSHAKE
-         fprintf (stderr,
-                  "Encrypting message of type %u\n",
-                  ntohs(((struct GNUNET_MessageHeader*)&pos[1])->type));
+         GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                     "Encrypting message of type %u\n",
+                     ntohs(((struct GNUNET_MessageHeader*)&pos[1])->type));
 #endif
          /* copy for encrypted transmission */
           memcpy (&buf[ret], &pos[1], pos->size);
@@ -3231,7 +3231,7 @@ handle_encrypted_message (struct Neighbour *n,
   /* validate hash */
   GNUNET_CRYPTO_hash (&pt->sequence_number,
                       size - ENCRYPTED_HEADER_SIZE - sizeof (GNUNET_HashCode), &ph);
-#if DEBUG_CORE
+#if DEBUG_HANDSHAKE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "V-Hashed %u bytes of plaintext (`%s') using IV `%d'\n",
              size - ENCRYPTED_HEADER_SIZE - sizeof (GNUNET_HashCode),
index fb1bdc533fb88f61063515bd5c6751b92525570e..5d2f60527c3dd7224a6373abc7db12049d530fcd 100644 (file)
@@ -1,6 +1,6 @@
 [PATHS]
 SERVICEHOME = /tmp/gnunet-test-fs-lib/
-DEFAULTCONFIG = test_fs_lib_data.conf
+DEFAULTCONFIG = fs_test_lib_data.conf
 
 [gnunetd]
 HOSTKEY = $SERVICEHOME/.hostkey
@@ -42,14 +42,14 @@ PORT = 43470
 HOSTNAME = localhost
 #TOTAL_QUOTA_IN = 3932160
 #TOTAL_QUOTA_OUT = 3932160
-#DEBUG = YES
+DEBUG = YES
 #PREFIX = valgrind --tool=memcheck --leak-check=yes
 #BINARY = /home/grothoff/bin/gnunet-service-core
 
 [fs]
 PORT = 43471
 HOSTNAME = localhost
-#DEBUG = YES
+DEBUG = YES
 #PREFIX = valgrind --tool=memcheck --leak-check=yes
 #BINARY = /home/grothoff/bin/gnunet-service-fs
 #PREFIX = xterm -e gdb -x cmd --args 
index 59fd3022b9e9b19e673d61bd859d294105281c34..00683ba36e0ae52b4ae4f4ff03b0583273787dce 100644 (file)
@@ -45,7 +45,7 @@
 #include "gnunet-service-fs_indexing.h"
 #include "fs.h"
 
-#define DEBUG_FS GNUNET_NO
+#define DEBUG_FS 2
 
 /**
  * Maximum number of outgoing messages we queue per peer.