diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-24 14:25:10 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-24 14:25:10 +0000 |
commit | ff80f7da5dd7a9e6971a4dddbd98db9aff70383e (patch) | |
tree | a28b2c00b3be2d939a31a289716fe422d8e74918 /src | |
parent | 8694e7b799bb2ef02ade6c4705da7193d22f26f6 (diff) |
- fix
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index d7ff6e71a..d1707a40e 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -1150,7 +1150,7 @@ queue_send (void *cls, size_t size, void *buf) /* Sanity checking */ if (NULL == buf || 0 == size) { - GNUNET_break (); + GNUNET_break (0); LOG (GNUNET_ERROR_TYPE_WARNING, "CORE gave buffer size 0.\n"); peer->tmt_time.abs_value_us = 0; peer->core_transmit = NULL; @@ -1172,11 +1172,15 @@ queue_send (void *cls, size_t size, void *buf) } core_wait_time = GNUNET_TIME_absolute_get_duration (peer->tmt_time); if (core_wait_time.rel_value_us >= 1000000) - LOG (GNUNET_ERROR_TYPE_ERROR, " core wait time %s > 1 second\n", + { + LOG (GNUNET_ERROR_TYPE_ERROR, " core wait time %s \n", GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); + } else + { LOG (GNUNET_ERROR_TYPE_DEBUG, " core wait time %s\n", GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); + } peer->tmt_time.abs_value_us = 0; /* Copy all possible messages to the core buffer */ |