From: Bart Polot Date: Thu, 18 Jun 2015 19:39:49 +0000 (+0000) Subject: - only log time if core is requested X-Git-Tag: initial-import-from-subversion-38251~1723 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e3454e70e4c78c11f395fbc485b810304feba801;p=oweals%2Fgnunet.git - only log time if core is requested --- diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index e69827d63..f337b6eb8 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -263,10 +263,12 @@ queue_debug (const struct CadetPeer *p, enum GNUNET_ErrorType level) LOG2 (level, "QQQ Message queue towards %s\n", GCP_2s (p)); LOG2 (level, "QQQ queue length: %u\n", p->queue_n); LOG2 (level, "QQQ core tmt rdy: %p\n", p->core_transmit); - core_wait_time = GNUNET_TIME_absolute_get_duration (p->tmt_time); - LOG2 (level, "QQQ core called %s ago\n", - GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); - + if (NULL != p->core_transmit) + { + core_wait_time = GNUNET_TIME_absolute_get_duration (p->tmt_time); + LOG2 (level, "QQQ core called %s ago\n", + GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); + } for (q = p->queue_head; NULL != q; q = q->next) { LOG2 (level, "QQQ - %s %s on %s\n",