aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2017-11-25 17:22:29 +0100
committert3sserakt <t3ss@posteo.de>2017-11-25 17:22:29 +0100
commit7d957ddfa3ab1a45c38ba3345ef0972748a8a79b (patch)
tree05854b7180bececcb8b764a92039a7ecfb0b1280 /src/util/mq.c
parent3cde37cf7f33eb992d1c13b383e1f0ddecfbf2da (diff)
downloadgnunet-7d957ddfa3ab1a45c38ba3345ef0972748a8a79b.tar.gz
gnunet-7d957ddfa3ab1a45c38ba3345ef0972748a8a79b.zip
added logging
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index 793fd70ae..58aba7797 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -361,8 +361,9 @@ GNUNET_MQ_send (struct GNUNET_MQ_Handle *mq,
361 mq->current_envelope = ev; 361 mq->current_envelope = ev;
362 362
363 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 363 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
364 "mq: sending message of type %u, queue empty\n", 364 "mq: sending message of type %u, queue empty (MQ: %p)\n",
365 ntohs(ev->mh->type)); 365 ntohs(ev->mh->type),
366 mq);
366 367
367 mq->send_impl (mq, 368 mq->send_impl (mq,
368 ev->mh, 369 ev->mh,
@@ -863,7 +864,7 @@ GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq)
863 * are not queued! */ 864 * are not queued! */
864 mq->current_envelope->parent_queue = NULL; 865 mq->current_envelope->parent_queue = NULL;
865 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 866 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
866 "MQ destroy drops message of type %u\n", 867 "MQ destroy drops current message of type %u\n",
867 ntohs (mq->current_envelope->mh->type)); 868 ntohs (mq->current_envelope->mh->type));
868 GNUNET_MQ_discard (mq->current_envelope); 869 GNUNET_MQ_discard (mq->current_envelope);
869 mq->current_envelope = NULL; 870 mq->current_envelope = NULL;