diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-06 01:12:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-06 01:12:57 +0000 |
commit | 9fac6b6eefdc9144053f736fd388cb2199a97046 (patch) | |
tree | 82740a981b7f6ae973d915aa77797acd9db668b2 /src/transport/gnunet-service-transport_hello.c | |
parent | 23d8d343d5c70481ecf78ec4fafc698907f3e8a9 (diff) | |
download | gnunet-9fac6b6eefdc9144053f736fd388cb2199a97046.tar.gz gnunet-9fac6b6eefdc9144053f736fd388cb2199a97046.zip |
-removing legacy ifdefs, fixing log statements
Diffstat (limited to 'src/transport/gnunet-service-transport_hello.c')
-rw-r--r-- | src/transport/gnunet-service-transport_hello.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c index 3838c511a..870c083d2 100644 --- a/src/transport/gnunet-service-transport_hello.c +++ b/src/transport/gnunet-service-transport_hello.c | |||
@@ -166,13 +166,9 @@ refresh_hello_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
166 | GNUNET_free (our_hello); | 166 | GNUNET_free (our_hello); |
167 | our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc); | 167 | our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc); |
168 | GNUNET_assert (NULL != our_hello); | 168 | GNUNET_assert (NULL != our_hello); |
169 | |||
170 | #if DEBUG_TRANSPORT | ||
171 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK, | 169 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK, |
172 | "Refreshed my `%s', new size is %d\n", "HELLO", | 170 | "Refreshed my `%s', new size is %d\n", "HELLO", |
173 | GNUNET_HELLO_size (our_hello)); | 171 | GNUNET_HELLO_size (our_hello)); |
174 | #endif | ||
175 | |||
176 | GNUNET_STATISTICS_update (GST_stats, gettext_noop ("# refreshed my HELLO"), 1, | 172 | GNUNET_STATISTICS_update (GST_stats, gettext_noop ("# refreshed my HELLO"), 1, |
177 | GNUNET_NO); | 173 | GNUNET_NO); |
178 | if (NULL != hello_cb) | 174 | if (NULL != hello_cb) |
@@ -260,13 +256,11 @@ GST_hello_modify_addresses (int addremove, | |||
260 | { | 256 | { |
261 | struct OwnAddressList *al; | 257 | struct OwnAddressList *al; |
262 | 258 | ||
263 | #if DEBUG_TRANSPORT | ||
264 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
265 | (add_remove == | 260 | (addremove == |
266 | GNUNET_YES) ? "Adding `%s':%s to the set of our addresses\n" : | 261 | GNUNET_YES) ? "Adding `%s' to the set of our addresses\n" : |
267 | "Removing `%s':%s from the set of our addresses\n", | 262 | "Removing `%s' from the set of our addresses\n", |
268 | GST_plugins_a2s (address), p->short_name); | 263 | GST_plugins_a2s (address)); |
269 | #endif | ||
270 | GNUNET_assert (address != NULL); | 264 | GNUNET_assert (address != NULL); |
271 | if (GNUNET_NO == addremove) | 265 | if (GNUNET_NO == addremove) |
272 | { | 266 | { |