diff options
-rw-r--r-- | src/net/udp/dns.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c index f23e10d..e557917 100644 --- a/src/net/udp/dns.c +++ b/src/net/udp/dns.c @@ -1211,7 +1211,7 @@ static int apply_dns_settings ( void ) { /* Fetch DNS server address */ apply_dns_servers(); - if ( DBG_LOG && ( dns_count != 0 ) ) { + if ( DBG_EXTRA && ( dns_count != 0 ) ) { union { struct sockaddr sa; struct sockaddr_in sin; @@ -1219,37 +1219,37 @@ static int apply_dns_settings ( void ) { } u; unsigned int i; - DBGC ( dbgcol, "DNS servers:" ); + DBGC2 ( dbgcol, "DNS servers:" ); for ( i = 0 ; i < dns6.count ; i++ ) { u.sin6.sin6_family = AF_INET6; memcpy ( &u.sin6.sin6_addr, &dns6.in6[i], sizeof ( u.sin6.sin6_addr ) ); - DBGC ( dbgcol, " %s", sock_ntoa ( &u.sa ) ); + DBGC2 ( dbgcol, " %s", sock_ntoa ( &u.sa ) ); } for ( i = 0 ; i < dns4.count ; i++ ) { u.sin.sin_family = AF_INET; u.sin.sin_addr = dns4.in[i]; - DBGC ( dbgcol, " %s", sock_ntoa ( &u.sa ) ); + DBGC2 ( dbgcol, " %s", sock_ntoa ( &u.sa ) ); } - DBGC ( dbgcol, "\n" ); + DBGC2 ( dbgcol, "\n" ); } /* Fetch DNS search list */ apply_dns_search(); - if ( DBG_LOG && ( dns_search.len != 0 ) ) { + if ( DBG_EXTRA && ( dns_search.len != 0 ) ) { struct dns_name name; int offset; - DBGC ( dbgcol, "DNS search list:" ); + DBGC2 ( dbgcol, "DNS search list:" ); memcpy ( &name, &dns_search, sizeof ( name ) ); while ( name.offset != name.len ) { - DBGC ( dbgcol, " %s", dns_name ( &name ) ); + DBGC2 ( dbgcol, " %s", dns_name ( &name ) ); offset = dns_skip_search ( &name ); if ( offset < 0 ) break; name.offset = offset; } - DBGC ( dbgcol, "\n" ); + DBGC2 ( dbgcol, "\n" ); } return 0; |