aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-27 12:14:51 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-27 12:14:51 +0000
commitd4ba6f055c65ca1b2cbf49cd4b935bf9bb966649 (patch)
tree15254a0d9e174a689af7a533f5eeb5608c119d4d /src/core
parent512de1fc705634737fbe776d8cd33249b61a897a (diff)
downloadgnunet-d4ba6f055c65ca1b2cbf49cd4b935bf9bb966649.tar.gz
gnunet-d4ba6f055c65ca1b2cbf49cd4b935bf9bb966649.zip
nicer logging
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c6
-rw-r--r--src/core/gnunet-service-core.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 1e17d0f5f..4af9aebfd 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -430,8 +430,10 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
430 em = (const struct GNUNET_MessageHeader *) &ntm[1]; 430 em = (const struct GNUNET_MessageHeader *) &ntm[1];
431#if DEBUG_CORE 431#if DEBUG_CORE
432 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 432 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
433 "Received message of type %u from peer `%4s'\n", 433 "Received message of type %u and size %u from peer `%4s'\n",
434 ntohs (em->type), GNUNET_i2s (&ntm->peer)); 434 ntohs (em->type),
435 ntohs (em->size),
436 GNUNET_i2s (&ntm->peer));
435#endif 437#endif
436 if ((GNUNET_NO == h->inbound_hdr_only) && 438 if ((GNUNET_NO == h->inbound_hdr_only) &&
437 (msize != ntohs (em->size) + sizeof (struct NotifyTrafficMessage))) 439 (msize != ntohs (em->size) + sizeof (struct NotifyTrafficMessage)))
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index bb7a506cb..cdd2b857e 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -3167,8 +3167,9 @@ deliver_message (struct Neighbour *sender,
3167 type = ntohs (m->type); 3167 type = ntohs (m->type);
3168#if DEBUG_CORE 3168#if DEBUG_CORE
3169 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3169 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3170 "Received encapsulated message of type %u from `%4s'\n", 3170 "Received encapsulated message of type %u and size %u from `%4s'\n",
3171 (unsigned int) type, 3171 (unsigned int) type,
3172 ntohs (m->size),
3172 GNUNET_i2s (&sender->peer)); 3173 GNUNET_i2s (&sender->peer));
3173#endif 3174#endif
3174 GNUNET_snprintf (buf, 3175 GNUNET_snprintf (buf,
@@ -3602,7 +3603,7 @@ neighbour_quota_update (void *cls,
3602 3603
3603#if DEBUG_CORE 3604#if DEBUG_CORE
3604 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3605 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3605 "Neighbour quota update calculation running for peer `%4s'\n" 3606 "Neighbour quota update calculation running for peer `%4s'\n",
3606 GNUNET_i2s (&n->peer)); 3607 GNUNET_i2s (&n->peer));
3607#endif 3608#endif
3608 n->quota_update_task = GNUNET_SCHEDULER_NO_TASK; 3609 n->quota_update_task = GNUNET_SCHEDULER_NO_TASK;