aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-01 20:40:11 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-01 20:40:11 +0000
commit8ed5770729764ad93bca2514607cb7652cf0e65b (patch)
tree4cc24928d8ddf1aa4abb208b8f116b6d2053266c /src/transport/test_quota_compliance.c
parent3de7831182e144ea960326e5efaaf1447d5e5ae9 (diff)
downloadgnunet-8ed5770729764ad93bca2514607cb7652cf0e65b.tar.gz
gnunet-8ed5770729764ad93bca2514607cb7652cf0e65b.zip
LRN: Fix debug logging in some transport tests
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 26d6f4bf6..0143772db 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -303,16 +303,9 @@ notify_ready (void *cls, size_t size, void *buf)
303 ret += sizeof (struct TestMessage); 303 ret += sizeof (struct TestMessage);
304 memset (&cbuf[ret], last_msg_sent, s - sizeof (struct TestMessage)); 304 memset (&cbuf[ret], last_msg_sent, s - sizeof (struct TestMessage));
305 ret += s - sizeof (struct TestMessage); 305 ret += s - sizeof (struct TestMessage);
306#if DEBUG_MEASUREMENT
307 if (n % 5000 == 0)
308 {
309 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
310 "Sending message %u\n",n);
311 }
312#endif
313 306
314 /* GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 307 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
315 "Sending message %u\n",last_msg_sent);*/ 308 "Sending message %u\n",last_msg_sent);
316 309
317 s = get_size (); 310 s = get_size ();
318 if (0 == GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 16)) 311 if (0 == GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 16))