aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-25 14:47:19 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-25 14:47:19 +0000
commit9e608f0ec3f05008c6ebfcaf8735ebffea9d92eb (patch)
tree020af4938c1a87b1b10b03845f1b07979f4e5c4c /src
parenta09ad91acc39845a10cf1681154e1cdfcf1ea59e (diff)
downloadgnunet-9e608f0ec3f05008c6ebfcaf8735ebffea9d92eb.tar.gz
gnunet-9e608f0ec3f05008c6ebfcaf8735ebffea9d92eb.zip
-LRN: neaten up, make debug log calls use DEBUG level
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 5c749d717..6dcf7a3ef 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -539,7 +539,7 @@ change (struct NeighbourMapEntry *n, int state, int line)
539 char *old = GNUNET_strdup (print_state (n->state)); 539 char *old = GNUNET_strdup (print_state (n->state));
540 char *new = GNUNET_strdup (print_state (state)); 540 char *new = GNUNET_strdup (print_state (state));
541 541
542 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 542 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
543 "State for neighbour `%s' %X changed from `%s' to `%s' in line %u\n", 543 "State for neighbour `%s' %X changed from `%s' to `%s' in line %u\n",
544 GNUNET_i2s (&n->id), n, old, new, line); 544 GNUNET_i2s (&n->id), n, old, new, line);
545 GNUNET_free (old); 545 GNUNET_free (old);
@@ -1119,7 +1119,7 @@ send_outbound_quota (const struct GNUNET_PeerIdentity *target,
1119 struct QuotaSetMessage q_msg; 1119 struct QuotaSetMessage q_msg;
1120 1120
1121#if DEBUG_TRANSPORT 1121#if DEBUG_TRANSPORT
1122 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1122 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1123 "Sending outbound quota of %u Bps for peer `%s' to all clients\n", 1123 "Sending outbound quota of %u Bps for peer `%s' to all clients\n",
1124 ntohl (quota.value__), GNUNET_i2s (target)); 1124 ntohl (quota.value__), GNUNET_i2s (target));
1125#endif 1125#endif
@@ -1403,7 +1403,7 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer,
1403 1403
1404 /* checks successful and neighbour != NULL */ 1404 /* checks successful and neighbour != NULL */
1405#if DEBUG_TRANSPORT 1405#if DEBUG_TRANSPORT
1406 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1406 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1407 "ATS tells us to switch to address '%s' session %p for peer `%s' in state `%s'\n", 1407 "ATS tells us to switch to address '%s' session %p for peer `%s' in state `%s'\n",
1408 GST_plugins_a2s (address), session, GNUNET_i2s (peer), 1408 GST_plugins_a2s (address), session, GNUNET_i2s (peer),
1409 print_state (n->state)); 1409 print_state (n->state));
@@ -2202,7 +2202,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity
2202 GNUNET_HashCode hc; 2202 GNUNET_HashCode hc;
2203 2203
2204#if DEBUG_TRANSPORT 2204#if DEBUG_TRANSPORT
2205 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 2205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2206 "Received DISCONNECT message from peer `%s'\n", 2206 "Received DISCONNECT message from peer `%s'\n",
2207 GNUNET_i2s (peer)); 2207 GNUNET_i2s (peer));
2208#endif 2208#endif
@@ -2284,7 +2284,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
2284 size_t ret; 2284 size_t ret;
2285 2285
2286#if DEBUG_TRANSPORT 2286#if DEBUG_TRANSPORT
2287 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 2287 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2288 "Received CONNECT_ACK message from peer `%s'\n", 2288 "Received CONNECT_ACK message from peer `%s'\n",
2289 GNUNET_i2s (peer)); 2289 GNUNET_i2s (peer));
2290#endif 2290#endif