aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r--src/mesh/gnunet-service-mesh.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 5abead314..744f5d2d2 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -73,7 +73,17 @@
73 73
74#define MESH_DEBUG_DHT GNUNET_NO 74#define MESH_DEBUG_DHT GNUNET_NO
75 75
76#if MESH_DEBUG
77#define DEBUG(...) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, __VA_ARGS__)
78#else
79#define DEBUG(...)
80#endif
76 81
82#if MESH_DEBUG_DHT
83#define DEBUG_DHT(...) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, __VA_ARGS__)
84#else
85#define DEBUG_DHT(...)
86#endif
77 87
78/******************************************************************************/ 88/******************************************************************************/
79/************************ DATA STRUCTURES ****************************/ 89/************************ DATA STRUCTURES ****************************/
@@ -477,7 +487,7 @@ mesh_debug (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
477 { 487 {
478 return; 488 return;
479 } 489 }
480 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: %s\n", s); 490 DEBUG ("MESH: %s\n", s);
481} 491}
482#endif 492#endif
483 493