aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-31 22:13:59 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-31 22:13:59 +0000
commitb8c48adeb02e380a11b808326fe72796c63c2faf (patch)
tree793bd8db313e7556a84ace378adcbd58b48464f0 /src/core
parent9e285a423b246b9fc5c3394bef947d130f44888a (diff)
downloadgnunet-b8c48adeb02e380a11b808326fe72796c63c2faf.tar.gz
gnunet-b8c48adeb02e380a11b808326fe72796c63c2faf.zip
done for now
Diffstat (limited to 'src/core')
-rw-r--r--src/core/test_core_api_peer1.conf2
-rw-r--r--src/core/test_core_api_peer2.conf2
-rw-r--r--src/core/test_core_api_reliability.c6
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
41#OPTIONS = -l log-core-1 41#OPTIONS = -l log-core-1
42#PREFIX = xterm -e xterm -T core1 -e gdb --args 42#PREFIX = xterm -e xterm -T core1 -e gdb --args
43#PREFIX = xterm -T core1 -e 43#PREFIX = xterm -T core1 -e
44DEBUG = YES 44#DEBUG = YES
45#BINARY=/home/grothoff/bin/gnunet-service-core 45#BINARY=/home/grothoff/bin/gnunet-service-core
46 46
47[testing] 47[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
39PORT = 22470 39PORT = 22470
40#PREFIX = xterm -T core2 -e 40#PREFIX = xterm -T core2 -e
41#PREFIX = valgrind --tool=memcheck 41#PREFIX = valgrind --tool=memcheck
42DEBUG = YES 42#DEBUG = YES
43#BINARY=/home/grothoff/bin/gnunet-service-core 43#BINARY=/home/grothoff/bin/gnunet-service-core
44 44
45[testing] 45[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 @@
35#include "gnunet_scheduler_lib.h" 35#include "gnunet_scheduler_lib.h"
36#include "gnunet_transport_service.h" 36#include "gnunet_transport_service.h"
37 37
38#define VERBOSE GNUNET_YES 38#define VERBOSE GNUNET_NO
39 39
40#define START_ARM GNUNET_YES 40#define START_ARM GNUNET_YES
41 41
@@ -180,8 +180,10 @@ inbound_notify (void *cls,
180 struct GNUNET_TIME_Relative latency, 180 struct GNUNET_TIME_Relative latency,
181 uint32_t distance) 181 uint32_t distance)
182{ 182{
183#if VERBOSE
183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 184 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
184 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); 185 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
186#endif
185 return GNUNET_OK; 187 return GNUNET_OK;
186} 188}
187 189
@@ -193,9 +195,11 @@ outbound_notify (void *cls,
193 struct GNUNET_TIME_Relative latency, 195 struct GNUNET_TIME_Relative latency,
194 uint32_t distance) 196 uint32_t distance)
195{ 197{
198#if VERBOSE
196 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 199 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
197 "Core notifies about outbound data for `%4s'.\n", 200 "Core notifies about outbound data for `%4s'.\n",
198 GNUNET_i2s (other)); 201 GNUNET_i2s (other));
202#endif
199 return GNUNET_OK; 203 return GNUNET_OK;
200} 204}
201 205