diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-29 15:02:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-29 15:02:31 +0200 |
commit | 24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0 (patch) | |
tree | 243f60886e42d6e0ab771aa8a08faeb508ea7489 /src/cadet | |
parent | 14b6de39c4316bb488d47dc07208a77dd0a85ef2 (diff) | |
download | gnunet-24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0.tar.gz gnunet-24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0.zip |
fix FTBFS issues if --enable-logging=no is set
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 4 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnels.c | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 739b68228..1a2b32be0 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -2049,6 +2049,7 @@ void | |||
2049 | GCCH_debug (struct CadetChannel *ch, | 2049 | GCCH_debug (struct CadetChannel *ch, |
2050 | enum GNUNET_ErrorType level) | 2050 | enum GNUNET_ErrorType level) |
2051 | { | 2051 | { |
2052 | #if !defined(GNUNET_CULL_LOGGING) | ||
2052 | int do_log; | 2053 | int do_log; |
2053 | 2054 | ||
2054 | do_log = GNUNET_get_log_call_status (level & (~GNUNET_ERROR_TYPE_BULK), | 2055 | do_log = GNUNET_get_log_call_status (level & (~GNUNET_ERROR_TYPE_BULK), |
@@ -2088,6 +2089,7 @@ GCCH_debug (struct CadetChannel *ch, | |||
2088 | ntohl (ch->mid_recv.mid), | 2089 | ntohl (ch->mid_recv.mid), |
2089 | (unsigned long long) ch->mid_futures, | 2090 | (unsigned long long) ch->mid_futures, |
2090 | ntohl (ch->mid_send.mid)); | 2091 | ntohl (ch->mid_send.mid)); |
2092 | #endif | ||
2091 | } | 2093 | } |
2092 | 2094 | ||
2093 | 2095 | ||
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 7b66f61a2..82ab5cc2c 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1066,6 +1066,7 @@ void | |||
1066 | GCC_debug (struct CadetConnection *cc, | 1066 | GCC_debug (struct CadetConnection *cc, |
1067 | enum GNUNET_ErrorType level) | 1067 | enum GNUNET_ErrorType level) |
1068 | { | 1068 | { |
1069 | #if !defined(GNUNET_CULL_LOGGING) | ||
1069 | int do_log; | 1070 | int do_log; |
1070 | 1071 | ||
1071 | do_log = GNUNET_get_log_call_status (level & (~GNUNET_ERROR_TYPE_BULK), | 1072 | do_log = GNUNET_get_log_call_status (level & (~GNUNET_ERROR_TYPE_BULK), |
@@ -1086,6 +1087,7 @@ GCC_debug (struct CadetConnection *cc, | |||
1086 | GCPP_2s (cc->path), | 1087 | GCPP_2s (cc->path), |
1087 | cc->state, | 1088 | cc->state, |
1088 | (GNUNET_YES == cc->mqm_ready) ? "ready" : "busy"); | 1089 | (GNUNET_YES == cc->mqm_ready) ? "ready" : "busy"); |
1090 | #endif | ||
1089 | } | 1091 | } |
1090 | 1092 | ||
1091 | /* end of gnunet-service-cadet-new_connection.c */ | 1093 | /* end of gnunet-service-cadet_connection.c */ |
diff --git a/src/cadet/gnunet-service-cadet_tunnels.c b/src/cadet/gnunet-service-cadet_tunnels.c index 28004debc..22e19ef70 100644 --- a/src/cadet/gnunet-service-cadet_tunnels.c +++ b/src/cadet/gnunet-service-cadet_tunnels.c | |||
@@ -3404,6 +3404,7 @@ void | |||
3404 | GCT_debug (const struct CadetTunnel *t, | 3404 | GCT_debug (const struct CadetTunnel *t, |
3405 | enum GNUNET_ErrorType level) | 3405 | enum GNUNET_ErrorType level) |
3406 | { | 3406 | { |
3407 | #if !defined(GNUNET_CULL_LOGGING) | ||
3407 | struct CadetTConnection *iter_c; | 3408 | struct CadetTConnection *iter_c; |
3408 | int do_log; | 3409 | int do_log; |
3409 | 3410 | ||
@@ -3435,7 +3436,8 @@ GCT_debug (const struct CadetTunnel *t, | |||
3435 | 3436 | ||
3436 | LOG2 (level, | 3437 | LOG2 (level, |
3437 | "TTT TUNNEL END\n"); | 3438 | "TTT TUNNEL END\n"); |
3439 | #endif | ||
3438 | } | 3440 | } |
3439 | 3441 | ||
3440 | 3442 | ||
3441 | /* end of gnunet-service-cadet-new_tunnels.c */ | 3443 | /* end of gnunet-service-cadet_tunnels.c */ |