aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 662ecffa1..4f422cfa0 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1773,16 +1773,15 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock)
1773 1773
1774 if (GNUNET_SYSERR == sent) 1774 if (GNUNET_SYSERR == sent)
1775 { 1775 {
1776 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); 1776 LOG (GNUNET_ERROR_TYPE_ERROR,
1777 LOG (GNUNET_ERROR_TYPE_DEBUG, 1777 "UDP could not transmit %u-byte message to `%s': `%s'\n",
1778 "UDP transmitted %u-byte message to %s (%d: %s)\n", 1778 (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen),
1779 (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, 1779 STRERROR (errno));
1780 (sent < 0) ? STRERROR (errno) : "ok");
1781 if (udpw->cont != NULL) 1780 if (udpw->cont != NULL)
1782 udpw->cont (udpw->cont_cls, &udpw->session->target, GNUNET_SYSERR); 1781 udpw->cont (udpw->cont_cls, &udpw->session->target, GNUNET_SYSERR);
1783 } 1782 }
1784 LOG (GNUNET_ERROR_TYPE_DEBUG, 1783 LOG (GNUNET_ERROR_TYPE_DEBUG,
1785 "UDP transmitted %u-byte message to %s (%d: %s)\n", 1784 "UDP transmitted %u-byte message to `%s' (%d: %s)\n",
1786 (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, 1785 (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent,
1787 (sent < 0) ? STRERROR (errno) : "ok"); 1786 (sent < 0) ? STRERROR (errno) : "ok");
1788 1787