gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33330 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r33330 - gnunet/src/transport
Date: Mon, 19 May 2014 16:35:19 +0200

Author: wachs
Date: 2014-05-19 16:35:19 +0200 (Mon, 19 May 2014)
New Revision: 33330

Modified:
   gnunet/src/transport/gnunet-transport.c
   gnunet/src/transport/transport_api_address_to_string.c
Log:
improved output for gnunet-transport


Modified: gnunet/src/transport/gnunet-transport.c
===================================================================
--- gnunet/src/transport/gnunet-transport.c     2014-05-19 14:17:08 UTC (rev 
33329)
+++ gnunet/src/transport/gnunet-transport.c     2014-05-19 14:35:19 UTC (rev 
33330)
@@ -1081,7 +1081,16 @@
 
   if (address != NULL )
   {
-    print_info (&rc->id, rc->transport, address, rc->state, rc->state_timeout);
+    if (GNUNET_SYSERR == res)
+    {
+      FPRINTF (stderr, "Failed to convert address for peer `%s' plugin `%s' 
length %lu to string \n",
+          GNUNET_i2s (&rc->id),
+          rc->addrcp->transport_name,
+          rc->addrcp->address_length);
+      print_info (&rc->id, rc->transport, NULL, rc->state, rc->state_timeout);
+    }
+    else
+      print_info (&rc->id, rc->transport, address, rc->state, 
rc->state_timeout);
     rc->printed = GNUNET_YES;
   }
   else
@@ -1099,7 +1108,7 @@
       }
       else
       {
-        print_info (&rc->id, rc->transport, "<unable to resolve address>",
+        print_info (&rc->id, rc->transport, NULL,
             rc->state, rc->state_timeout);
       }
     }

Modified: gnunet/src/transport/transport_api_address_to_string.c
===================================================================
--- gnunet/src/transport/transport_api_address_to_string.c      2014-05-19 
14:17:08 UTC (rev 33329)
+++ gnunet/src/transport/transport_api_address_to_string.c      2014-05-19 
14:35:19 UTC (rev 33330)
@@ -125,8 +125,6 @@
     return;
   }
 
-  result = GNUNET_NO;
-
   /* expect more replies */
   GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb,
                          GNUNET_TIME_absolute_get_remaining (alucb->timeout));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]