gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r28155 - gnunet/src/mesh
Date: Thu, 18 Jul 2013 14:22:33 +0200

Author: bartpolot
Date: 2013-07-18 14:22:33 +0200 (Thu, 18 Jul 2013)
New Revision: 28155

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
- debug

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2013-07-18 12:14:20 UTC (rev 28154)
+++ gnunet/src/mesh/mesh_api.c  2013-07-18 12:22:33 UTC (rev 28155)
@@ -1195,17 +1195,22 @@
         GNUNET_assert (size >= psize);
         dmsg->header.size = htons (psize);
         dmsg->tid = htonl (t->tid);
+        dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA);
+        LOG (GNUNET_ERROR_TYPE_DEBUG, "#  payload type %s\n",
+             GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
       }
-      dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA);
-      LOG (GNUNET_ERROR_TYPE_DEBUG, "#  payload type %s\n",
-           GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
-
+      else
+      {
+        LOG (GNUNET_ERROR_TYPE_DEBUG,
+             "#  callback returned size 0, "
+             "application canceled transmission\n");
+      }
     }
     else
     {
       struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1];
 
-      LOG (GNUNET_ERROR_TYPE_DEBUG, "#  mesh traffic, type %s\n",
+      LOG (GNUNET_ERROR_TYPE_DEBUG, "#  mesh internal traffic, type %s\n",
            GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
       memcpy (cbuf, &th[1], th->size);
       psize = th->size;




reply via email to

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