better logging
authorChristian Grothoff <christian@grothoff.org>
Thu, 12 May 2011 14:35:34 +0000 (14:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 12 May 2011 14:35:34 +0000 (14:35 +0000)
src/util/client.c

index 7e688059044211cebf40dcea045f51534252b4a0..3c31aaaa8f1461c4939a6b9bf8d9b549a535010d 100644 (file)
@@ -492,7 +492,11 @@ receive_helper (void *cls,
     {
       /* signal timeout! */
 #if DEBUG_CLIENT
-      GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "timeout in receive_helper, available %d, conn->sock %s, errCode %d\n", available, conn->sock == NULL ? "NULL" : "non-NULL", errCode);
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                 "Timeout in receive_helper, available %u, conn->sock %s, errCode `%s'\n", 
+                 (unsigned int) available, 
+                 conn->sock == NULL ? "NULL" : "non-NULL", 
+                 STRERROR (errCode));
 #endif
       if (NULL != (receive_handler = conn->receiver_handler))
         {