From: Danny Mayer Date: Sun, 14 Dec 2003 16:50:12 +0000 (-0500) Subject: Print no interfaces message if debug is on X-Git-Tag: NTP_4_2_3~191^2~1^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97239a0060a4dfb261a0d815d875d3a87bf0af1b;p=thirdparty%2Fntp.git Print no interfaces message if debug is on bk: 3fdc94c401v3Ts-0GoVTgyylyFx1Sg --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 44bc23b605..b5e04631fd 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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;