[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18105 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18105 - gnunet/src/mesh |
Date: |
Fri, 11 Nov 2011 16:35:05 +0100 |
Author: bartpolot
Date: 2011-11-11 16:35:05 +0100 (Fri, 11 Nov 2011)
New Revision: 18105
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
Fixed debug stuff
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2011-11-11 12:06:05 UTC (rev
18104)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2011-11-11 15:35:05 UTC (rev
18105)
@@ -405,7 +405,7 @@
/************************ DEBUG FUNCTIONS
****************************/
/******************************************************************************/
-
+#if MESH_DEBUG
/**
* GNUNET_SCHEDULER_Task for printing a message after some operation is done
* @param cls string to print
@@ -422,8 +422,8 @@
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: %s\n", s);
}
+#endif
-
/******************************************************************************/
/*********************** GLOBAL VARIABLES
****************************/
/******************************************************************************/
@@ -822,7 +822,9 @@
*tid = htonl (t->local_tid);
for (count = 0, c = clients; c != NULL; c = c->next)
{
+#if MESH_DEBUG
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: client %u\n", c->id);
+#endif
if (client_is_subscribed (type, c))
{
count++;
@@ -3413,9 +3415,9 @@
c = GNUNET_malloc (sizeof (struct MeshClient));
#if MESH_DEBUG
c->id = next_client_id++;
-#endif
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: CLIENT NEW %u at %p\n", c->id,
c);
+#endif
c->handle = client;
GNUNET_SERVER_client_keep (client);
a = (GNUNET_MESH_ApplicationType *) &cc_msg[1];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18105 - gnunet/src/mesh,
gnunet <=