diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
commit | 83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch) | |
tree | d0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/datacache/datacache.c | |
parent | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff) | |
download | gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip |
curly wars / auto-indentation
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r-- | src/datacache/datacache.c | 14 |
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 | } |