From af63d98838d8b6e03ee304bcf1ae736b0e81b7aa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 14 Feb 2010 23:59:30 +0000 Subject: [PATCH] debug stuff --- src/core/core.h | 2 +- src/core/gnunet-service-core.c | 4 ++-- src/core/test_core_api.c | 1 - src/core/test_core_api_peer1.conf | 4 ++-- src/core/test_core_api_peer2.conf | 4 ++-- 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 @@ /** * General core debugging. */ -#define DEBUG_CORE GNUNET_NO +#define DEBUG_CORE GNUNET_YES /** * 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, #if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "process_hello_retry_send_key for peer %s\n", + "Entered `process_hello_retry_send_key' for peer `%4s'\n", GNUNET_i2s (peer)); #endif if (n->public_key != NULL) @@ -2531,7 +2531,7 @@ handle_pong (struct Neighbour *n, const struct PingMessage *m) n->status = PEER_STATE_KEY_CONFIRMED; #if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Confirmed key via %s for peer %s\n", + "Confirmed key via `%s' message for peer `%4s'\n", "PONG", GNUNET_i2s (&n->peer)); #endif 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, const struct GNUNET_PeerIdentity *peer) { struct PeerContext *pc = cls; - GNUNET_assert (pc->connect_status == 1); pc->connect_status = 0; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "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 #PREFIX= xterm -e xterm -T transport1 -e gdb --args #PREFIX = xterm -T transport1 -e gdb --args #PREFIX = xterm -T transport1 -e valgrind --tool=memcheck -#DEBUG = YES +DEBUG = YES [arm] PORT = 12466 @@ -40,7 +40,7 @@ PORT = 12470 #OPTIONS = -l log-core-1 #PREFIX = xterm -e xterm -T core1 -e gdb --args #PREFIX = xterm -T core1 -e -#DEBUG = YES +DEBUG = YES [testing] WEAKRANDOM = 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 #PREFIX = xterm -e xterm -T transport2 -e gdb --args #PREFIX = xterm -T transport2 -e #PREFIX = xterm -T transport2 -e valgrind --tool=memcheck -#DEBUG = YES +DEBUG = YES [arm] PORT = 22466 @@ -38,7 +38,7 @@ PORT = 22469 PORT = 22470 #PREFIX = xterm -T core2 -e #PREFIX = xterm -T core2 -e valgrind --tool=memcheck -#DEBUG = YES +DEBUG = YES [testing] WEAKRANDOM = YES -- 2.25.1