gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r31562 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r31562 - gnunet/src/mesh
Date: Thu, 19 Dec 2013 14:26:12 +0100

Author: bartpolot
Date: 2013-12-19 14:26:12 +0100 (Thu, 19 Dec 2013)
New Revision: 31562

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
- debug info on API side


Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2013-12-19 13:25:27 UTC (rev 31561)
+++ gnunet/src/mesh/mesh_api.c  2013-12-19 13:26:12 UTC (rev 31562)
@@ -835,15 +835,14 @@
   unsigned int i;
   uint16_t type;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
-       "Got a data message!\n");
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Got a data message!\n");
   dmsg = (struct GNUNET_MESH_LocalData *) message;
   ch = retrieve_channel (h, ntohl (dmsg->id));
   payload = (struct GNUNET_MessageHeader *) &dmsg[1];
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
-       "  %s data on channel %s [%X]\n",
-       ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV ? "fwd" : "bck",
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "  %s data on channel %s [%X]\n",
+       GM_f2s (ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV),
        GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)), ntohl (dmsg->id));
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "  %u bytes\n", ntohs (message->size));
   if (NULL == ch)
   {
     /* Channel was ignored/destroyed, probably service didn't get it yet */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]