From f1696b714e33c293f4243be27ccfa6fd2f305518 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 10 Jun 2009 00:07:42 +0000 Subject: [PATCH] dbg msgs --- src/transport/gnunet-service-transport.c | 5 ++++- src/transport/plugin_transport_tcp.c | 4 ++-- src/transport/transport_api.c | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 18b50b38a..da6ee9df8 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -2811,7 +2811,10 @@ run (void *cls, } if (no_transports) refresh_hello (); - GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Transport service ready.\n")); +#if DEBUG_TRANSPORT + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Transport service ready.\n")); +#endif /* process client requests */ GNUNET_SERVER_add_handlers (server, handlers); } diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 4ab555ad6..1b4a7c103 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -38,7 +38,7 @@ #include "plugin_transport.h" #include "transport.h" -#define DEBUG_TCP GNUNET_YES +#define DEBUG_TCP GNUNET_NO /** * After how long do we expire an address that we @@ -587,7 +587,7 @@ do_transmit (void *cls, size_t size, void *buf) = GNUNET_TIME_absolute_get (); } process_pending_messages (session); -#if DEBUG_TCP || 1 +#if DEBUG_TCP GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "tcp", "Transmitting %u bytes\n", ret); #endif diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 977175cee..c2e2061f8 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -1403,7 +1403,6 @@ GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle) th->notify (th->notify_cls, 0, NULL); GNUNET_free (th); } - while (NULL != (th = handle->connect_wait_head)) { handle->connect_wait_head = th->next; -- 2.25.1