diff options
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_api_new.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesh/mesh_api_new.c b/src/mesh/mesh_api_new.c index 7c45cd7b8..64f880e06 100644 --- a/src/mesh/mesh_api_new.c +++ b/src/mesh/mesh_api_new.c | |||
@@ -45,7 +45,7 @@ extern "C" | |||
45 | #include "mesh.h" | 45 | #include "mesh.h" |
46 | #include "mesh_protocol.h" | 46 | #include "mesh_protocol.h" |
47 | 47 | ||
48 | #define DEBUG GNUNET_YES | 48 | #define MESH_API_DEBUG GNUNET_YES |
49 | 49 | ||
50 | #define LOG(kind,...) GNUNET_log_from (kind, "mesh-api",__VA_ARGS__) | 50 | #define LOG(kind,...) GNUNET_log_from (kind, "mesh-api",__VA_ARGS__) |
51 | 51 | ||
@@ -618,7 +618,7 @@ send_connect (struct GNUNET_MESH_Handle *h) | |||
618 | types[ntypes] = htons (h->message_handlers[ntypes].type); | 618 | types[ntypes] = htons (h->message_handlers[ntypes].type); |
619 | msg->applications = htons (napps); | 619 | msg->applications = htons (napps); |
620 | msg->types = htons (ntypes); | 620 | msg->types = htons (ntypes); |
621 | #if DEBUG | 621 | #if MESH_API_DEBUG |
622 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 622 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
623 | "mesh: Sending %lu bytes long message %d types and %d apps\n", | 623 | "mesh: Sending %lu bytes long message %d types and %d apps\n", |
624 | ntohs (msg->header.size), ntypes, napps); | 624 | ntohs (msg->header.size), ntypes, napps); |
@@ -642,7 +642,7 @@ reconnect (struct GNUNET_MESH_Handle *h) | |||
642 | struct GNUNET_MESH_Tunnel *t; | 642 | struct GNUNET_MESH_Tunnel *t; |
643 | unsigned int i; | 643 | unsigned int i; |
644 | 644 | ||
645 | #if DEBUG | 645 | #if MESH_API_DEBUG |
646 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: *****************************\n"); | 646 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: *****************************\n"); |
647 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: ******* RECONNECT *******\n"); | 647 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: ******* RECONNECT *******\n"); |
648 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: *****************************\n"); | 648 | LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: *****************************\n"); |
@@ -938,7 +938,7 @@ process_incoming_data (struct GNUNET_MESH_Handle *h, | |||
938 | GNUNET_MESH_disconnect (h); | 938 | GNUNET_MESH_disconnect (h); |
939 | return; | 939 | return; |
940 | } | 940 | } |
941 | #if DEBUG | 941 | #if MESH_API_DEBUG |
942 | else | 942 | else |
943 | { | 943 | { |
944 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 944 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1470,7 +1470,7 @@ GNUNET_MESH_notify_transmit_ready (struct GNUNET_MESH_Tunnel *tunnel, int cork, | |||
1470 | uint32_t least_priority; | 1470 | uint32_t least_priority; |
1471 | size_t overhead; | 1471 | size_t overhead; |
1472 | 1472 | ||
1473 | #if DEBUG | 1473 | #if MESH_API_DEBUG |
1474 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1474 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1475 | "mesh: mesh notify transmit ready called\n"); | 1475 | "mesh: mesh notify transmit ready called\n"); |
1476 | if (NULL != target) | 1476 | if (NULL != target) |