]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Print no interfaces message if debug is on
authorDanny Mayer <mayer@ntp.org>
Sun, 14 Dec 2003 16:50:12 +0000 (11:50 -0500)
committerDanny Mayer <mayer@ntp.org>
Sun, 14 Dec 2003 16:50:12 +0000 (11:50 -0500)
bk: 3fdc94c401v3Ts-0GoVTgyylyFx1Sg

ntpd/ntp_io.c

index 44bc23b6053ee52fcef92b4a3342bebd02a34391..b5e04631fda481e53bcdb5810aac0734b42f6be1 100644 (file)
@@ -440,15 +440,19 @@ create_sockets(
 
        if (isc_net_probeipv6() == ISC_R_SUCCESS)
                scan_ipv6 = ISC_TRUE;
-#ifdef ISC_PLATFORM_HAVEIPV6
+#if defined(ISC_PLATFORM_HAVEIPV6) && defined(DEBUG)
        else
-               netsyslog(LOG_ERR, "no IPv6 interfaces found");
+               if(debug)
+                       netsyslog(LOG_ERR, "no IPv6 interfaces found");
 #endif
 
        if (isc_net_probeipv4() == ISC_R_SUCCESS)
                scan_ipv4 = ISC_TRUE;
+#ifdef DEBUG
        else
-               netsyslog(LOG_ERR, "no IPv4 interfaces found");
+               if(debug)
+                       netsyslog(LOG_ERR, "no IPv4 interfaces found");
+#endif
 
        nwilds = create_wildcards(port);
        idx = nwilds;