aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-05-20 11:33:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-05-20 11:33:55 +0000
commit515580c7f27b87831b6b5d4207c72c8acab53ca1 (patch)
tree14ba3c39867414efa114468bbd55872a4256da5c
parentab449f68c169ca87910a792c0dceef118d69b80f (diff)
downloadgnunet-515580c7f27b87831b6b5d4207c72c8acab53ca1.tar.gz
gnunet-515580c7f27b87831b6b5d4207c72c8acab53ca1.zip
improved log message
-rw-r--r--src/transport/plugin_transport_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index da38e7cc7..e86c06ae8 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -1024,8 +1024,9 @@ do_transmit (void *cls, size_t size, void *buf)
1024 GNUNET_CONTAINER_DLL_remove(session->pending_messages_head, 1024 GNUNET_CONTAINER_DLL_remove(session->pending_messages_head,
1025 session->pending_messages_tail, pos); 1025 session->pending_messages_tail, pos);
1026 GNUNET_assert(size >= pos->message_size); 1026 GNUNET_assert(size >= pos->message_size);
1027 LOG(GNUNET_ERROR_TYPE_DEBUG, "Transmitting message of type %u\n", 1027 LOG(GNUNET_ERROR_TYPE_DEBUG, "Transmitting message of type %u size %u\n",
1028 ntohs (((struct GNUNET_MessageHeader * ) pos->msg)->type)); 1028 ntohs (((struct GNUNET_MessageHeader * ) pos->msg)->type),
1029 pos->message_size);
1029 /* FIXME: this memcpy can be up to 7% of our total runtime */ 1030 /* FIXME: this memcpy can be up to 7% of our total runtime */
1030 memcpy (cbuf, pos->msg, pos->message_size); 1031 memcpy (cbuf, pos->msg, pos->message_size);
1031 cbuf += pos->message_size; 1032 cbuf += pos->message_size;
@@ -1793,7 +1794,6 @@ tcp_plugin_address_pretty_printer (void *cls, const char *type,
1793 timeout, &append_port, ppc); 1794 timeout, &append_port, ppc);
1794 if (NULL != ppc->resolver_handle) 1795 if (NULL != ppc->resolver_handle)
1795 { 1796 {
1796 //GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Adding request %p\n", ppc);
1797 GNUNET_CONTAINER_DLL_insert(ppc_dll_head, ppc_dll_tail, ppc); 1797 GNUNET_CONTAINER_DLL_insert(ppc_dll_head, ppc_dll_tail, ppc);
1798 } 1798 }
1799 else 1799 else