aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/datacache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r--src/datacache/datacache.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c
index 324ab78ef..d68ba72b5 100644
--- a/src/datacache/datacache.c
+++ b/src/datacache/datacache.c
@@ -109,8 +109,7 @@ env_delete_notify (void *cls, const GNUNET_HashCode * key, size_t size)
109 struct GNUNET_DATACACHE_Handle *h = cls; 109 struct GNUNET_DATACACHE_Handle *h = cls;
110 110
111#if DEBUG_DATACACHE 111#if DEBUG_DATACACHE
112 LOG (GNUNET_ERROR_TYPE_DEBUG, 112 LOG (GNUNET_ERROR_TYPE_DEBUG, "Content under key `%s' discarded\n",
113 "Content under key `%s' discarded\n",
114 GNUNET_h2s (key)); 113 GNUNET_h2s (key));
115#endif 114#endif
116 GNUNET_assert (h->utilization >= size); 115 GNUNET_assert (h->utilization >= size);
@@ -243,8 +242,7 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
243 return GNUNET_SYSERR; 242 return GNUNET_SYSERR;
244 } 243 }
245#if DEBUG_DATACACHE 244#if DEBUG_DATACACHE
246 LOG (GNUNET_ERROR_TYPE_DEBUG, 245 LOG (GNUNET_ERROR_TYPE_DEBUG, "Stored data under key `%s' in cache\n",
247 "Stored data under key `%s' in cache\n",
248 GNUNET_h2s (key)); 246 GNUNET_h2s (key));
249#endif 247#endif
250 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size, 248 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size,
@@ -276,8 +274,7 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
276 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# requests received"), 1, 274 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# requests received"), 1,
277 GNUNET_NO); 275 GNUNET_NO);
278#if DEBUG_DATACACHE 276#if DEBUG_DATACACHE
279 LOG (GNUNET_ERROR_TYPE_DEBUG, 277 LOG (GNUNET_ERROR_TYPE_DEBUG, "Processing request for key `%s'\n",
280 "Processing request for key `%s'\n",
281 GNUNET_h2s (key)); 278 GNUNET_h2s (key));
282#endif 279#endif
283 if (GNUNET_OK != GNUNET_CONTAINER_bloomfilter_test (h->filter, key)) 280 if (GNUNET_OK != GNUNET_CONTAINER_bloomfilter_test (h->filter, key))
@@ -287,9 +284,8 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
287 ("# requests filtered by bloom filter"), 1, 284 ("# requests filtered by bloom filter"), 1,
288 GNUNET_NO); 285 GNUNET_NO);
289#if DEBUG_DATACACHE 286#if DEBUG_DATACACHE
290 LOG (GNUNET_ERROR_TYPE_DEBUG, 287 LOG (GNUNET_ERROR_TYPE_DEBUG, "Bloomfilter filters request for key `%s'\n",
291 "Bloomfilter filters request for key `%s'\n", 288 GNUNET_h2s (key));
292 GNUNET_h2s (key));
293#endif 289#endif
294 return 0; /* can not be present */ 290 return 0; /* can not be present */
295 } 291 }