gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r19332 - gnunet/src/mesh
Date: Mon, 23 Jan 2012 18:36:50 +0100

Author: bartpolot
Date: 2012-01-23 18:36:49 +0100 (Mon, 23 Jan 2012)
New Revision: 19332

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

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2012-01-23 15:45:11 UTC (rev 19331)
+++ gnunet/src/mesh/mesh_api.c  2012-01-23 17:36:49 UTC (rev 19332)
@@ -1293,7 +1293,15 @@
     GNUNET_break (UINT32_MAX == th->priority);
     GNUNET_break (NULL == th->notify);
     msg = (struct GNUNET_MessageHeader *) &th[1];
-    GNUNET_break (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT == ntohs(msg->type));
+    if (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT != ntohs(msg->type))
+    {
+      GNUNET_break (0);
+#if MESH_API_DEBUG
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: expected %u, got %u\n",
+                  GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT, ntohs(msg->type));
+#endif
+    }
+
     GNUNET_CONTAINER_DLL_remove (handle->th_head, handle->th_tail, th);
     GNUNET_free (th);
   }




reply via email to

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