summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-08-26 23:14:28 +0200
committerJulius Bünger <buenger@mytum.de>2018-08-26 23:14:28 +0200
commit68bcee90f4d7973a712e3304d82f5246443eb314 (patch)
tree31eb40c542e62f64a2a391da5af9e2e576adf748
parentf7cc48d3e4309507f276cfb028d58f9c5048c469 (diff)
Add missing #ifdef
-rw-r--r--src/rps/gnunet-service-rps_sampler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index 2974c3cbc..20b2d3420 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -455,11 +455,13 @@ RPS_sampler_mod_init (size_t init_size,
sampler = RPS_sampler_init (init_size, max_round_interval);
sampler->get_peers = sampler_mod_get_rand_peer;
+#ifdef TO_FILE
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Initialised modified sampler %s\n",
sampler->file_name);
to_file (sampler->file_name,
"This is a modified sampler");
+#endif /* TO_FILE */
return sampler;
}