[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11534 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11534 - gnunet/src/core |
Date: |
Thu, 27 May 2010 14:14:51 +0200 |
Author: grothoff
Date: 2010-05-27 14:14:51 +0200 (Thu, 27 May 2010)
New Revision: 11534
Modified:
gnunet/src/core/core_api.c
gnunet/src/core/gnunet-service-core.c
Log:
nicer logging
Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c 2010-05-27 10:54:00 UTC (rev 11533)
+++ gnunet/src/core/core_api.c 2010-05-27 12:14:51 UTC (rev 11534)
@@ -430,8 +430,10 @@
em = (const struct GNUNET_MessageHeader *) &ntm[1];
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Received message of type %u from peer `%4s'\n",
- ntohs (em->type), GNUNET_i2s (&ntm->peer));
+ "Received message of type %u and size %u from peer `%4s'\n",
+ ntohs (em->type),
+ ntohs (em->size),
+ GNUNET_i2s (&ntm->peer));
#endif
if ((GNUNET_NO == h->inbound_hdr_only) &&
(msize != ntohs (em->size) + sizeof (struct NotifyTrafficMessage)))
Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c 2010-05-27 10:54:00 UTC (rev
11533)
+++ gnunet/src/core/gnunet-service-core.c 2010-05-27 12:14:51 UTC (rev
11534)
@@ -3167,8 +3167,9 @@
type = ntohs (m->type);
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Received encapsulated message of type %u from `%4s'\n",
+ "Received encapsulated message of type %u and size %u from
`%4s'\n",
(unsigned int) type,
+ ntohs (m->size),
GNUNET_i2s (&sender->peer));
#endif
GNUNET_snprintf (buf,
@@ -3602,7 +3603,7 @@
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Neighbour quota update calculation running for peer `%4s'\n"
+ "Neighbour quota update calculation running for peer `%4s'\n",
GNUNET_i2s (&n->peer));
#endif
n->quota_update_task = GNUNET_SCHEDULER_NO_TASK;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11534 - gnunet/src/core,
gnunet <=