From b8c48adeb02e380a11b808326fe72796c63c2faf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 31 May 2010 22:13:59 +0000 Subject: [PATCH] done for now --- src/core/test_core_api_peer1.conf | 2 +- src/core/test_core_api_peer2.conf | 2 +- src/core/test_core_api_reliability.c | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/test_core_api_peer1.conf b/src/core/test_core_api_peer1.conf index d02c0a800..21bb7481b 100644 --- a/src/core/test_core_api_peer1.conf +++ b/src/core/test_core_api_peer1.conf @@ -41,7 +41,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 #BINARY=/home/grothoff/bin/gnunet-service-core [testing] diff --git a/src/core/test_core_api_peer2.conf b/src/core/test_core_api_peer2.conf index a067163f5..71a167e73 100644 --- a/src/core/test_core_api_peer2.conf +++ b/src/core/test_core_api_peer2.conf @@ -39,7 +39,7 @@ PORT = 22469 PORT = 22470 #PREFIX = xterm -T core2 -e #PREFIX = valgrind --tool=memcheck -DEBUG = YES +#DEBUG = YES #BINARY=/home/grothoff/bin/gnunet-service-core [testing] diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index a88c05f43..89120561b 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c @@ -35,7 +35,7 @@ #include "gnunet_scheduler_lib.h" #include "gnunet_transport_service.h" -#define VERBOSE GNUNET_YES +#define VERBOSE GNUNET_NO #define START_ARM GNUNET_YES @@ -180,8 +180,10 @@ inbound_notify (void *cls, struct GNUNET_TIME_Relative latency, uint32_t distance) { +#if VERBOSE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); +#endif return GNUNET_OK; } @@ -193,9 +195,11 @@ outbound_notify (void *cls, struct GNUNET_TIME_Relative latency, uint32_t distance) { +#if VERBOSE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Core notifies about outbound data for `%4s'.\n", GNUNET_i2s (other)); +#endif return GNUNET_OK; } -- 2.25.1