aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-11 15:35:05 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-11 15:35:05 +0000
commit2b3b24e80a709916fa58914256a3bcef1b623813 (patch)
treeddd4694d5523d926d06d34f610657eb651e1c717
parent0bc3d9e7ebc9a770653382a9de6dc079f8b27a75 (diff)
downloadgnunet-2b3b24e80a709916fa58914256a3bcef1b623813.tar.gz
gnunet-2b3b24e80a709916fa58914256a3bcef1b623813.zip
Fixed debug stuff
-rw-r--r--src/mesh/gnunet-service-mesh.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index d4239ea50..09eb8df1a 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -405,7 +405,7 @@ struct MeshClient
405/************************ DEBUG FUNCTIONS ****************************/ 405/************************ DEBUG FUNCTIONS ****************************/
406/******************************************************************************/ 406/******************************************************************************/
407 407
408 408#if MESH_DEBUG
409/** 409/**
410 * GNUNET_SCHEDULER_Task for printing a message after some operation is done 410 * GNUNET_SCHEDULER_Task for printing a message after some operation is done
411 * @param cls string to print 411 * @param cls string to print
@@ -422,7 +422,7 @@ mesh_debug (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
422 } 422 }
423 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: %s\n", s); 423 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: %s\n", s);
424} 424}
425 425#endif
426 426
427/******************************************************************************/ 427/******************************************************************************/
428/*********************** GLOBAL VARIABLES ****************************/ 428/*********************** GLOBAL VARIABLES ****************************/
@@ -822,7 +822,9 @@ send_subscribed_clients (const struct GNUNET_MessageHeader *msg,
822 *tid = htonl (t->local_tid); 822 *tid = htonl (t->local_tid);
823 for (count = 0, c = clients; c != NULL; c = c->next) 823 for (count = 0, c = clients; c != NULL; c = c->next)
824 { 824 {
825#if MESH_DEBUG
825 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: client %u\n", c->id); 826 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: client %u\n", c->id);
827#endif
826 if (client_is_subscribed (type, c)) 828 if (client_is_subscribed (type, c))
827 { 829 {
828 count++; 830 count++;
@@ -3413,9 +3415,9 @@ handle_local_new_client (void *cls, struct GNUNET_SERVER_Client *client,
3413 c = GNUNET_malloc (sizeof (struct MeshClient)); 3415 c = GNUNET_malloc (sizeof (struct MeshClient));
3414#if MESH_DEBUG 3416#if MESH_DEBUG
3415 c->id = next_client_id++; 3417 c->id = next_client_id++;
3416#endif
3417 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: CLIENT NEW %u at %p\n", c->id, 3418 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: CLIENT NEW %u at %p\n", c->id,
3418 c); 3419 c);
3420#endif
3419 c->handle = client; 3421 c->handle = client;
3420 GNUNET_SERVER_client_keep (client); 3422 GNUNET_SERVER_client_keep (client);
3421 a = (GNUNET_MESH_ApplicationType *) &cc_msg[1]; 3423 a = (GNUNET_MESH_ApplicationType *) &cc_msg[1];