diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-04 13:24:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-04 13:24:22 +0000 |
commit | a5d0694571db763efd0787a680168492f325b2e6 (patch) | |
tree | 1190488e92987d408c93d5b0edf9f0f48d47b81e /src/transport | |
parent | 4bc01ed4fb1083681966558efcbc069876cddcc3 (diff) | |
download | gnunet-a5d0694571db763efd0787a680168492f325b2e6.tar.gz gnunet-a5d0694571db763efd0787a680168492f325b2e6.zip |
LRN: Use GNUNET_EXTRA_LOGGING to manage compile-time logging calls
(#1805).
Diffstat (limited to 'src/transport')
23 files changed, 43 insertions, 43 deletions
diff --git a/src/transport/gnunet-transport-connect-running-peers.c b/src/transport/gnunet-transport-connect-running-peers.c index aac63cb35..3542f8521 100644 --- a/src/transport/gnunet-transport-connect-running-peers.c +++ b/src/transport/gnunet-transport-connect-running-peers.c | |||
@@ -36,9 +36,9 @@ | |||
36 | #include "transport.h" | 36 | #include "transport.h" |
37 | #include "transport-testing.h" | 37 | #include "transport-testing.h" |
38 | 38 | ||
39 | #define VERBOSE GNUNET_NO | 39 | #define VERBOSE GNUNET_EXTRA_LOGGING |
40 | 40 | ||
41 | #define VERBOSE_ARM GNUNET_NO | 41 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
42 | 42 | ||
43 | #define START_ARM GNUNET_YES | 43 | #define START_ARM GNUNET_YES |
44 | 44 | ||
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index 11584553a..9b057d1b0 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h | |||
@@ -45,7 +45,7 @@ | |||
45 | #define DEBUG_HTTP GNUNET_YES | 45 | #define DEBUG_HTTP GNUNET_YES |
46 | #define VERBOSE_SERVER GNUNET_YES | 46 | #define VERBOSE_SERVER GNUNET_YES |
47 | #define VERBOSE_CLIENT GNUNET_YES | 47 | #define VERBOSE_CLIENT GNUNET_YES |
48 | #define VERBOSE_CURL GNUNET_NO | 48 | #define VERBOSE_CURL GNUNET_EXTRA_LOGGING |
49 | 49 | ||
50 | #if BUILD_HTTPS | 50 | #if BUILD_HTTPS |
51 | #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init | 51 | #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init |
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index 260045602..fa11a9b6d 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c | |||
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | #define SMTP_MESSAGE_SIZE 65528 | 41 | #define SMTP_MESSAGE_SIZE 65528 |
42 | 42 | ||
43 | #define DEBUG_SMTP GNUNET_NO | 43 | #define DEBUG_SMTP GNUNET_EXTRA_LOGGING |
44 | 44 | ||
45 | #define FILTER_STRING_SIZE 64 | 45 | #define FILTER_STRING_SIZE 64 |
46 | 46 | ||
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index af253f964..20e4bda50 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -39,9 +39,9 @@ | |||
39 | #include "gnunet_transport_plugin.h" | 39 | #include "gnunet_transport_plugin.h" |
40 | #include "transport.h" | 40 | #include "transport.h" |
41 | 41 | ||
42 | #define DEBUG_TCP GNUNET_NO | 42 | #define DEBUG_TCP GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define DEBUG_TCP_NAT GNUNET_NO | 44 | #define DEBUG_TCP_NAT GNUNET_EXTRA_LOGGING |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Initial handshake message for a session. | 47 | * Initial handshake message for a session. |
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index 3ad8014c5..7110f9c88 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "gnunet_transport_service.h" | 33 | #include "gnunet_transport_service.h" |
34 | #include "gnunet_transport_plugin.h" | 34 | #include "gnunet_transport_plugin.h" |
35 | 35 | ||
36 | #define DEBUG_TEMPLATE GNUNET_NO | 36 | #define DEBUG_TEMPLATE GNUNET_EXTRA_LOGGING |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * After how long do we expire an address that we | 39 | * After how long do we expire an address that we |
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 752dd6f3d..a63c7d3e5 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "gnunet_transport_plugin.h" | 38 | #include "gnunet_transport_plugin.h" |
39 | #include "transport.h" | 39 | #include "transport.h" |
40 | 40 | ||
41 | #define DEBUG_UDP GNUNET_NO | 41 | #define DEBUG_UDP GNUNET_EXTRA_LOGGING |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * MTU for fragmentation subsystem. Should be conservative since | 44 | * MTU for fragmentation subsystem. Should be conservative since |
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 59c42e1f6..b927214bd 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "gnunet_transport_plugin.h" | 42 | #include "gnunet_transport_plugin.h" |
43 | #include "transport.h" | 43 | #include "transport.h" |
44 | 44 | ||
45 | #define DEBUG_UNIX GNUNET_NO | 45 | #define DEBUG_UNIX GNUNET_EXTRA_LOGGING |
46 | #define DETAILS GNUNET_NO | 46 | #define DETAILS GNUNET_NO |
47 | 47 | ||
48 | #define MAX_PROBES 20 | 48 | #define MAX_PROBES 20 |
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 81f7923e3..2bd2dc9d9 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -101,9 +101,9 @@ | |||
101 | * DEBUG switch | 101 | * DEBUG switch |
102 | */ | 102 | */ |
103 | #define DEBUG_wlan GNUNET_YES | 103 | #define DEBUG_wlan GNUNET_YES |
104 | #define DEBUG_wlan_retransmission GNUNET_NO | 104 | #define DEBUG_wlan_retransmission GNUNET_EXTRA_LOGGING |
105 | #define DEBUG_wlan_ip_udp_packets_on_air GNUNET_NO | 105 | #define DEBUG_wlan_ip_udp_packets_on_air GNUNET_EXTRA_LOGGING |
106 | #define DEBUG_wlan_msg_dump GNUNET_NO | 106 | #define DEBUG_wlan_msg_dump GNUNET_EXTRA_LOGGING |
107 | 107 | ||
108 | 108 | ||
109 | #define IEEE80211_ADDR_LEN 6 /* size of 802.11 address */ | 109 | #define IEEE80211_ADDR_LEN 6 /* size of 802.11 address */ |
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 794c8311d..56abe2cd3 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include "gnunet_transport_plugin.h" | 37 | #include "gnunet_transport_plugin.h" |
38 | #include "transport.h" | 38 | #include "transport.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * How long until we give up on transmitting the message? | 43 | * How long until we give up on transmitting the message? |
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 778fe4be3..aab66c22f 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -42,8 +42,8 @@ | |||
42 | #include "transport.h" | 42 | #include "transport.h" |
43 | #include <curl/curl.h> | 43 | #include <curl/curl.h> |
44 | 44 | ||
45 | #define VERBOSE GNUNET_NO | 45 | #define VERBOSE GNUNET_EXTRA_LOGGING |
46 | #define DEBUG_CURL GNUNET_NO | 46 | #define DEBUG_CURL GNUNET_EXTRA_LOGGING |
47 | #define HTTP_BUFFER_SIZE 2048 | 47 | #define HTTP_BUFFER_SIZE 2048 |
48 | 48 | ||
49 | #define PROTOCOL_PREFIX "http" | 49 | #define PROTOCOL_PREFIX "http" |
diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c index 962010c42..1027c2b0f 100644 --- a/src/transport/test_plugin_transport_https.c +++ b/src/transport/test_plugin_transport_https.c | |||
@@ -42,8 +42,8 @@ | |||
42 | #include "transport.h" | 42 | #include "transport.h" |
43 | #include <curl/curl.h> | 43 | #include <curl/curl.h> |
44 | 44 | ||
45 | #define VERBOSE GNUNET_NO | 45 | #define VERBOSE GNUNET_EXTRA_LOGGING |
46 | #define DEBUG_CURL GNUNET_NO | 46 | #define DEBUG_CURL GNUNET_EXTRA_LOGGING |
47 | #define HTTP_BUFFER_SIZE 2048 | 47 | #define HTTP_BUFFER_SIZE 2048 |
48 | 48 | ||
49 | #define PLUGIN libgnunet_plugin_transport_template | 49 | #define PLUGIN libgnunet_plugin_transport_template |
diff --git a/src/transport/test_plugin_transport_udp.c b/src/transport/test_plugin_transport_udp.c index 8fbd2ab9c..1b0ec91f6 100644 --- a/src/transport/test_plugin_transport_udp.c +++ b/src/transport/test_plugin_transport_udp.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "gnunet_transport_plugin.h" | 38 | #include "gnunet_transport_plugin.h" |
39 | #include "transport.h" | 39 | #include "transport.h" |
40 | 40 | ||
41 | #define VERBOSE GNUNET_NO | 41 | #define VERBOSE GNUNET_EXTRA_LOGGING |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * How long until we give up on transmitting the message? | 44 | * How long until we give up on transmitting the message? |
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 63bd7da02..8e4a40efc 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c | |||
@@ -35,13 +35,13 @@ | |||
35 | #include "transport.h" | 35 | #include "transport.h" |
36 | #include "transport-testing.h" | 36 | #include "transport-testing.h" |
37 | 37 | ||
38 | #define VERBOSE GNUNET_NO | 38 | #define VERBOSE GNUNET_EXTRA_LOGGING |
39 | 39 | ||
40 | #define VERBOSE_ARM GNUNET_NO | 40 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define START_ARM GNUNET_YES | 42 | #define START_ARM GNUNET_YES |
43 | #define DEBUG_MEASUREMENT GNUNET_NO | 43 | #define DEBUG_MEASUREMENT GNUNET_EXTRA_LOGGING |
44 | #define DEBUG_CONNECTIONS GNUNET_NO | 44 | #define DEBUG_CONNECTIONS GNUNET_EXTRA_LOGGING |
45 | 45 | ||
46 | #define MEASUREMENT_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | 46 | #define MEASUREMENT_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) |
47 | #define MEASUREMENT_MSG_SIZE 1024 | 47 | #define MEASUREMENT_MSG_SIZE 1024 |
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index eb64b0f39..033577a21 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | #include "transport-testing.h" | 38 | #include "transport-testing.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define VERBOSE_ARM GNUNET_NO | 42 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define START_ARM GNUNET_YES | 44 | #define START_ARM GNUNET_YES |
45 | 45 | ||
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c index 3cc30d91d..ad169df4c 100644 --- a/src/transport/test_transport_api_disconnect.c +++ b/src/transport/test_transport_api_disconnect.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | #include "transport-testing.h" | 38 | #include "transport-testing.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define VERBOSE_ARM GNUNET_NO | 42 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define START_ARM GNUNET_YES | 44 | #define START_ARM GNUNET_YES |
45 | 45 | ||
diff --git a/src/transport/test_transport_api_limited_sockets.c b/src/transport/test_transport_api_limited_sockets.c index bc8b82538..66816671c 100644 --- a/src/transport/test_transport_api_limited_sockets.c +++ b/src/transport/test_transport_api_limited_sockets.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | #include "transport-testing.h" | 38 | #include "transport-testing.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define VERBOSE_ARM GNUNET_NO | 42 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define START_ARM GNUNET_YES | 44 | #define START_ARM GNUNET_YES |
45 | 45 | ||
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index d53ac0d22..a64a6fbe3 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | #define VERBOSE GNUNET_YES | 41 | #define VERBOSE GNUNET_YES |
42 | 42 | ||
43 | #define VERBOSE_ARM GNUNET_NO | 43 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
44 | 44 | ||
45 | #define START_ARM GNUNET_YES | 45 | #define START_ARM GNUNET_YES |
46 | 46 | ||
diff --git a/src/transport/test_transport_api_timeout.c b/src/transport/test_transport_api_timeout.c index 0124889ce..84a8316bd 100644 --- a/src/transport/test_transport_api_timeout.c +++ b/src/transport/test_transport_api_timeout.c | |||
@@ -38,9 +38,9 @@ | |||
38 | #include "transport.h" | 38 | #include "transport.h" |
39 | #include "transport-testing.h" | 39 | #include "transport-testing.h" |
40 | 40 | ||
41 | #define VERBOSE GNUNET_NO | 41 | #define VERBOSE GNUNET_EXTRA_LOGGING |
42 | 42 | ||
43 | #define VERBOSE_ARM GNUNET_NO | 43 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
44 | 44 | ||
45 | #define START_ARM GNUNET_YES | 45 | #define START_ARM GNUNET_YES |
46 | 46 | ||
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index 630011522..a8c8d14e9 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -39,9 +39,9 @@ | |||
39 | #include "transport.h" | 39 | #include "transport.h" |
40 | #include "transport-testing.h" | 40 | #include "transport-testing.h" |
41 | 41 | ||
42 | #define VERBOSE GNUNET_NO | 42 | #define VERBOSE GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define VERBOSE_ARM GNUNET_NO | 44 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
45 | 45 | ||
46 | #define START_ARM GNUNET_YES | 46 | #define START_ARM GNUNET_YES |
47 | 47 | ||
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c index 4bbacca5e..d7c70df83 100644 --- a/src/transport/test_transport_api_unreliability_constant.c +++ b/src/transport/test_transport_api_unreliability_constant.c | |||
@@ -39,9 +39,9 @@ | |||
39 | #include "transport.h" | 39 | #include "transport.h" |
40 | #include "transport-testing.h" | 40 | #include "transport-testing.h" |
41 | 41 | ||
42 | #define VERBOSE GNUNET_NO | 42 | #define VERBOSE GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define VERBOSE_ARM GNUNET_NO | 44 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
45 | 45 | ||
46 | #define START_ARM GNUNET_YES | 46 | #define START_ARM GNUNET_YES |
47 | 47 | ||
diff --git a/src/transport/test_transport_startonly.c b/src/transport/test_transport_startonly.c index 075c10527..89ada4c01 100644 --- a/src/transport/test_transport_startonly.c +++ b/src/transport/test_transport_startonly.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | #include "transport-testing.h" | 38 | #include "transport-testing.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define VERBOSE_ARM GNUNET_NO | 42 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define START_ARM GNUNET_YES | 44 | #define START_ARM GNUNET_YES |
45 | 45 | ||
diff --git a/src/transport/test_transport_testing.c b/src/transport/test_transport_testing.c index 85c05df4b..db9f528d6 100644 --- a/src/transport/test_transport_testing.c +++ b/src/transport/test_transport_testing.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | #include "transport-testing.h" | 38 | #include "transport-testing.h" |
39 | 39 | ||
40 | #define VERBOSE GNUNET_NO | 40 | #define VERBOSE GNUNET_EXTRA_LOGGING |
41 | 41 | ||
42 | #define VERBOSE_ARM GNUNET_NO | 42 | #define VERBOSE_ARM GNUNET_EXTRA_LOGGING |
43 | 43 | ||
44 | #define START_ARM GNUNET_YES | 44 | #define START_ARM GNUNET_YES |
45 | 45 | ||
diff --git a/src/transport/transport.h b/src/transport/transport.h index 505d106e0..6ccc8abd2 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -30,13 +30,13 @@ | |||
30 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
31 | #include "gnunet_transport_service.h" | 31 | #include "gnunet_transport_service.h" |
32 | 32 | ||
33 | #define DEBUG_TRANSPORT GNUNET_NO | 33 | #define DEBUG_TRANSPORT GNUNET_EXTRA_LOGGING |
34 | 34 | ||
35 | #define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO | 35 | #define DEBUG_TRANSPORT_TIMEOUT GNUNET_EXTRA_LOGGING |
36 | 36 | ||
37 | #define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO | 37 | #define DEBUG_TRANSPORT_DISCONNECT GNUNET_EXTRA_LOGGING |
38 | 38 | ||
39 | #define DEBUG_TRANSPORT_API GNUNET_NO | 39 | #define DEBUG_TRANSPORT_API GNUNET_EXTRA_LOGGING |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * For how long do we allow unused bandwidth | 42 | * For how long do we allow unused bandwidth |