dhcp: downgrade "got raw socket fd" message to log3, make log2 default max
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 31 May 2019 21:51:07 +0000 (23:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 31 May 2019 21:52:16 +0000 (23:52 +0200)
log3 messages are very much redundant

function                                             old     new   delta
change_listen_mode                                   322     302     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/Config.src
networking/udhcp/d6_dhcpc.c
networking/udhcp/dhcpc.c

index f16fc0a4f2d8df43d489141e81ade1265f5dcfbe..8ef24748e13c39c7697e7b4a4ca458787020b590 100644 (file)
@@ -116,7 +116,7 @@ config FEATURE_UDHCP_PORT
 
 config UDHCP_DEBUG
        int "Maximum verbosity level (0..9)"
-       default 9
+       default 2
        range 0 9
        depends on UDHCPD || UDHCPC || UDHCPC6 || DHCPRELAY
        help
index 02766ba168f1a4342d7303416d162a728229114b..422b8888247e25922d33fc5700c42900e33ba3c2 100644 (file)
@@ -981,7 +981,7 @@ static int d6_raw_socket(int ifindex)
        log2("opening raw socket on ifindex %d", ifindex);
 
        fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6));
-       log2("got raw socket fd %d", fd);
+       log3("got raw socket fd %d", fd);
 
        memset(&sock, 0, sizeof(sock)); /* let's be deterministic */
        sock.sll_family = AF_PACKET;
index f040e93f7587a0307f74dd2b6165e93c2ada0f87..739870bee8eda87d0a9822249635fb004fa69156 100644 (file)
@@ -1017,7 +1017,7 @@ static int udhcp_raw_socket(int ifindex)
         * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them)
         * ETH_P_IP: want to receive only packets with IPv4 eth type
         */
-       log2("got raw socket fd");
+       log3("got raw socket fd %d", fd);
 
        memset(&sock, 0, sizeof(sock)); /* let's be deterministic */
        sock.sll_family = AF_PACKET;