-print switch target
authorChristian Grothoff <christian@grothoff.org>
Fri, 22 Jun 2012 08:21:12 +0000 (08:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 22 Jun 2012 08:21:12 +0000 (08:21 +0000)
src/util/client.c
src/util/service.c

index d9be7f46ed42d030f8845fd5e009a131f2c4ce9f..1f08ea25c71751eb3604ff771812d0cf4c0f4fae 100644 (file)
@@ -740,6 +740,8 @@ GNUNET_CLIENT_service_test (const char *service,
              _("UNIXPATH `%s' too long, maximum length is %llu\n"), unixpath,
              (unsigned long long) sizeof (s_un.sun_path));
        unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath);
+        LOG (GNUNET_ERROR_TYPE_INFO,
+             _("Using `%s' instead\n"), unixpath);
       }
     }
     if (NULL != unixpath)
index c9bbee3c88f2fac2fbace933e45d9ba699705194..173b5d9872c5c185d9fd71f26c1628b08c320d33 100644 (file)
@@ -975,6 +975,9 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name,
            _("UNIXPATH `%s' too long, maximum length is %llu\n"), unixpath,
            (unsigned long long) sizeof (s_un.sun_path));
       unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath);
+      LOG (GNUNET_ERROR_TYPE_INFO,
+          _("Using `%s' instead\n"), unixpath);
+
     }
   }
   if (NULL != unixpath)