- debug
authorBart Polot <bart@net.in.tum.de>
Thu, 16 Aug 2012 14:00:01 +0000 (14:00 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 16 Aug 2012 14:00:01 +0000 (14:00 +0000)
src/mesh/mesh_api.c

index 9f0dc0856afec2f68b3230d950e8874bb284a7d2..d63ad315d1e35d1353a4fa89a7f2c352ae939580 100644 (file)
@@ -684,6 +684,9 @@ send_ack (struct GNUNET_MESH_Handle *h, struct GNUNET_MESH_Tunnel *t)
 {
   struct GNUNET_MESH_LocalAck msg;
 
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Sending ACK on tunnel %X: %u\n",
+       t->tid, t->pid + 1);
   msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK);
   msg.header.size = htons (sizeof (msg));
   msg.tunnel_id = htonl (t->tid);
@@ -1097,6 +1100,7 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
   if (NULL == t)
   {
     /* Tunnel was ignored, probably service didn't get it yet */
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  ignored!\n");
     return GNUNET_YES;
   }
   type = ntohs (payload->type);