From 0e7a1358adfd0b6517a6da19864f23154d616383 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 29 Mar 2012 15:04:31 +0000 Subject: - udp error message --- src/transport/plugin_transport_udp.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/transport') 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) if (GNUNET_SYSERR == sent) { - GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); - LOG (GNUNET_ERROR_TYPE_DEBUG, - "UDP transmitted %u-byte message to %s (%d: %s)\n", - (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, - (sent < 0) ? STRERROR (errno) : "ok"); + LOG (GNUNET_ERROR_TYPE_ERROR, + "UDP could not transmit %u-byte message to `%s': `%s'\n", + (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), + STRERROR (errno)); if (udpw->cont != NULL) udpw->cont (udpw->cont_cls, &udpw->session->target, GNUNET_SYSERR); } LOG (GNUNET_ERROR_TYPE_DEBUG, - "UDP transmitted %u-byte message to %s (%d: %s)\n", + "UDP transmitted %u-byte message to `%s' (%d: %s)\n", (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, (sent < 0) ? STRERROR (errno) : "ok"); -- cgit v1.2.3