- udp error message
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 29 Mar 2012 15:04:31 +0000 (15:04 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 29 Mar 2012 15:04:31 +0000 (15:04 +0000)
src/transport/plugin_transport_udp.c

index 662ecffa1b1b513ea2d5b9c68cd8ce0f7df05773..4f422cfa05cac8e9534a7f3b56c8af4dc4681d68 100644 (file)
@@ -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");