udhcpc[6]: downgrade "adapter index N" messages to log2 level
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Jul 2017 10:06:53 +0000 (12:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Jul 2017 10:06:53 +0000 (12:06 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/d6_socket.c
networking/udhcp/socket.c

index 930e5e4f5792c1575389c5ad768dd8f8e4ab505e..d00c217d68c0f3cdc903deea6c607e01f3b166e5 100644 (file)
@@ -28,8 +28,8 @@ int FAST_FUNC d6_read_interface(const char *interface, int *ifindex, struct in6_
                if (ifa->ifa_addr->sa_family == AF_PACKET) {
                        struct sockaddr_ll *sll = (struct sockaddr_ll*)(ifa->ifa_addr);
                        memcpy(mac, sll->sll_addr, 6);
-                       log1("MAC %02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
-                       log1("adapter index %d", sll->sll_ifindex);
+                       log2("MAC %02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
+                       log2("ifindex %d", sll->sll_ifindex);
                        *ifindex = sll->sll_ifindex;
                        retval &= (0xf - (1<<0));
                }
index 4fd79f4238440a67e80c2fabe512d7514daffabb..ec6a1dc0fad090951073f7e3c898f761ccabaa3e 100644 (file)
@@ -56,7 +56,7 @@ int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t
                        close(fd);
                        return -1;
                }
-               log1("adapter index %d", ifr->ifr_ifindex);
+               log2("ifindex %d", ifr->ifr_ifindex);
                *ifindex = ifr->ifr_ifindex;
        }