udhcpc[6]: on log level 1, three messages about raw socket is overkill
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Jul 2017 10:04:22 +0000 (12:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Jul 2017 10:04:22 +0000 (12:04 +0200)
Move first two messages to log2 level:

08:46:32.23824 udhcpc: opening raw socket on ifindex 2
08:46:32.23825 udhcpc: got raw socket fd
08:46:32.26354 udhcpc: created raw socket

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

index ebf79343883a1a858a9f8bbac663110f652ed5f4..66bc021e2cbb9a84b0da5cfaf1a595c3974b63a8 100644 (file)
@@ -877,10 +877,10 @@ static int d6_raw_socket(int ifindex)
        };
 #endif
 
-       log1("opening raw socket on ifindex %d", ifindex); //log2?
+       log2("opening raw socket on ifindex %d", ifindex);
 
        fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6));
-       log1("got raw socket fd %d", fd); //log2?
+       log2("got raw socket fd %d", fd);
 
        sock.sll_family = AF_PACKET;
        sock.sll_protocol = htons(ETH_P_IPV6);
index 1a66c610e0d48b1cd59adf7d6fdcca1973efe44a..932a956af92ed66585eca048a27390b8ef0a7dbe 100644 (file)
@@ -1001,14 +1001,14 @@ static int udhcp_raw_socket(int ifindex)
        int fd;
        struct sockaddr_ll sock;
 
-       log1("opening raw socket on ifindex %d", ifindex); //log2?
+       log2("opening raw socket on ifindex %d", ifindex);
 
        fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
        /* ^^^^^
         * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them)
         * ETH_P_IP: want to receive only packets with IPv4 eth type
         */
-       log1("got raw socket fd"); //log2?
+       log2("got raw socket fd");
 
        sock.sll_family = AF_PACKET;
        sock.sll_protocol = htons(ETH_P_IP);