aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-14 23:59:30 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-14 23:59:30 +0000
commitaf63d98838d8b6e03ee304bcf1ae736b0e81b7aa (patch)
tree362dfea6f5702863c1a2eb90d153348e010f5800 /src
parent6e108aed24f9993be4d69147e18322d2d58b34d1 (diff)
downloadgnunet-af63d98838d8b6e03ee304bcf1ae736b0e81b7aa.tar.gz
gnunet-af63d98838d8b6e03ee304bcf1ae736b0e81b7aa.zip
debug stuff
Diffstat (limited to 'src')
-rw-r--r--src/core/core.h2
-rw-r--r--src/core/gnunet-service-core.c4
-rw-r--r--src/core/test_core_api.c1
-rw-r--r--src/core/test_core_api_peer1.conf4
-rw-r--r--src/core/test_core_api_peer2.conf4
5 files changed, 7 insertions, 8 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 7332f43b7..20c3ddc4b 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -29,7 +29,7 @@
29/** 29/**
30 * General core debugging. 30 * General core debugging.
31 */ 31 */
32#define DEBUG_CORE GNUNET_NO 32#define DEBUG_CORE GNUNET_YES
33 33
34/** 34/**
35 * Debugging interaction core-clients. 35 * Debugging interaction core-clients.
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 6c2906d17..f9581f4ef 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -2007,7 +2007,7 @@ process_hello_retry_send_key (void *cls,
2007 2007
2008#if DEBUG_CORE 2008#if DEBUG_CORE
2009 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2009 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2010 "process_hello_retry_send_key for peer %s\n", 2010 "Entered `process_hello_retry_send_key' for peer `%4s'\n",
2011 GNUNET_i2s (peer)); 2011 GNUNET_i2s (peer));
2012#endif 2012#endif
2013 if (n->public_key != NULL) 2013 if (n->public_key != NULL)
@@ -2531,7 +2531,7 @@ handle_pong (struct Neighbour *n, const struct PingMessage *m)
2531 n->status = PEER_STATE_KEY_CONFIRMED; 2531 n->status = PEER_STATE_KEY_CONFIRMED;
2532#if DEBUG_CORE 2532#if DEBUG_CORE
2533 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2533 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2534 "Confirmed key via %s for peer %s\n", 2534 "Confirmed key via `%s' message for peer `%4s'\n",
2535 "PONG", GNUNET_i2s (&n->peer)); 2535 "PONG", GNUNET_i2s (&n->peer));
2536#endif 2536#endif
2537 if (n->retry_set_key_task != GNUNET_SCHEDULER_NO_TASK) 2537 if (n->retry_set_key_task != GNUNET_SCHEDULER_NO_TASK)
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index 9f3aad016..3c7529303 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -128,7 +128,6 @@ disconnect_notify (void *cls,
128 const struct GNUNET_PeerIdentity *peer) 128 const struct GNUNET_PeerIdentity *peer)
129{ 129{
130 struct PeerContext *pc = cls; 130 struct PeerContext *pc = cls;
131 GNUNET_assert (pc->connect_status == 1);
132 pc->connect_status = 0; 131 pc->connect_status = 0;
133 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 132 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
134 "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer)); 133 "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer));
diff --git a/src/core/test_core_api_peer1.conf b/src/core/test_core_api_peer1.conf
index 931e936b8..8835ee51a 100644
--- a/src/core/test_core_api_peer1.conf
+++ b/src/core/test_core_api_peer1.conf
@@ -13,7 +13,7 @@ PLUGINS = tcp
13#PREFIX= xterm -e xterm -T transport1 -e gdb --args 13#PREFIX= xterm -e xterm -T transport1 -e gdb --args
14#PREFIX = xterm -T transport1 -e gdb --args 14#PREFIX = xterm -T transport1 -e gdb --args
15#PREFIX = xterm -T transport1 -e valgrind --tool=memcheck 15#PREFIX = xterm -T transport1 -e valgrind --tool=memcheck
16#DEBUG = YES 16DEBUG = YES
17 17
18[arm] 18[arm]
19PORT = 12466 19PORT = 12466
@@ -40,7 +40,7 @@ PORT = 12470
40#OPTIONS = -l log-core-1 40#OPTIONS = -l log-core-1
41#PREFIX = xterm -e xterm -T core1 -e gdb --args 41#PREFIX = xterm -e xterm -T core1 -e gdb --args
42#PREFIX = xterm -T core1 -e 42#PREFIX = xterm -T core1 -e
43#DEBUG = YES 43DEBUG = YES
44 44
45[testing] 45[testing]
46WEAKRANDOM = YES 46WEAKRANDOM = YES
diff --git a/src/core/test_core_api_peer2.conf b/src/core/test_core_api_peer2.conf
index 5f9af1fd3..a9875877a 100644
--- a/src/core/test_core_api_peer2.conf
+++ b/src/core/test_core_api_peer2.conf
@@ -13,7 +13,7 @@ PLUGINS = tcp
13#PREFIX = xterm -e xterm -T transport2 -e gdb --args 13#PREFIX = xterm -e xterm -T transport2 -e gdb --args
14#PREFIX = xterm -T transport2 -e 14#PREFIX = xterm -T transport2 -e
15#PREFIX = xterm -T transport2 -e valgrind --tool=memcheck 15#PREFIX = xterm -T transport2 -e valgrind --tool=memcheck
16#DEBUG = YES 16DEBUG = YES
17 17
18[arm] 18[arm]
19PORT = 22466 19PORT = 22466
@@ -38,7 +38,7 @@ PORT = 22469
38PORT = 22470 38PORT = 22470
39#PREFIX = xterm -T core2 -e 39#PREFIX = xterm -T core2 -e
40#PREFIX = xterm -T core2 -e valgrind --tool=memcheck 40#PREFIX = xterm -T core2 -e valgrind --tool=memcheck
41#DEBUG = YES 41DEBUG = YES
42 42
43[testing] 43[testing]
44WEAKRANDOM = YES 44WEAKRANDOM = YES