debug message for assertion to figure out malformed address length
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 31 Mar 2014 09:02:34 +0000 (09:02 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 31 Mar 2014 09:02:34 +0000 (09:02 +0000)
src/transport/plugin_transport_tcp.c

index db19d584c72584097016b1dcf990e12814964d83..fadec5f4dae114a4aaf2a06f69741b730ea132f4 100644 (file)
@@ -1783,7 +1783,8 @@ tcp_plugin_address_pretty_printer (void *cls, const char *type,
   else
   {
     /* invalid address */
-    GNUNET_break_op(0);
+    LOG (GNUNET_ERROR_TYPE_ERROR,
+        "Trying to print invalid `%s' address with size %u\n", type, addrlen);
     asc (asc_cls, NULL );
     return;
   }