aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_topo.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-18 05:34:34 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-18 05:34:34 +0000
commit45a6c8033e511e2d3dc3f20cb62248c77ee90725 (patch)
treec6ee2c18875b6bd4f950e463f04dcee3db8d2937 /src/dht/test_dht_topo.c
parent04630c5e40fc4de16393894d0b5ff2ca9055f4e2 (diff)
-code cleanup
Diffstat (limited to 'src/dht/test_dht_topo.c')
-rw-r--r--src/dht/test_dht_topo.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/dht/test_dht_topo.c b/src/dht/test_dht_topo.c
index cb0399da96..ed746a5836 100644
--- a/src/dht/test_dht_topo.c
+++ b/src/dht/test_dht_topo.c
@@ -30,8 +30,6 @@
#include "gnunet_testing_lib.h"
#include "gnunet_dht_service.h"
-#define VERBOSE GNUNET_NO
-
#define REMOVE_DIR GNUNET_YES
/**
@@ -401,15 +399,9 @@ peergroup_ready (void *cls, const char *emsg)
GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
return;
}
-#if VERBOSE
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "************************************************************\n");
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Peer Group started successfully!\n");
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Have %u connections\n",
+ "Peer Group started successfully with %u connections\n",
total_connections);
-#endif
-
if (data_file != NULL)
{
buf = NULL;
@@ -493,19 +485,11 @@ run (void *cls, char *const *args, const char *cfgfile,
testing_cfg = GNUNET_CONFIGURATION_dup (cfg);
GNUNET_log_setup ("test_dht_topo",
-#if VERBOSE
- "DEBUG",
-#else
"WARNING",
-#endif
NULL);
-
-#if VERBOSE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemons.\n");
GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing",
"use_progressbars", "YES");
-#endif
-
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing",
"num_peers", &num_peers))
@@ -593,17 +577,11 @@ main (int xargc, char *xargv[])
char *const argv_torus[] = { "test-dht-2dtorus",
"-c",
"test_dht_2dtorus.conf",
-#if VERBOSE
- "-L", "DEBUG",
-#endif
NULL
};
char *const argv_line[] = { "test-dht-line",
"-c",
"test_dht_line.conf",
-#if VERBOSE
- "-L", "DEBUG",
-#endif
NULL
};
char *const *argv;