summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-24 12:06:53 +0200
committerDenys Vlasenko2017-07-24 12:06:53 +0200
commitb72f1ef17b97802d33f0ac522f64bea0f65442c5 (patch)
tree38783d67c7265ef6c6933b295ee7b2a2bdb91617
parentde6cb4173466f056f64395e7cc515657d9894685 (diff)
downloadbusybox-b72f1ef17b97802d33f0ac522f64bea0f65442c5.zip
busybox-b72f1ef17b97802d33f0ac522f64bea0f65442c5.tar.gz
udhcpc[6]: downgrade "adapter index N" messages to log2 level
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/udhcp/d6_socket.c4
-rw-r--r--networking/udhcp/socket.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/d6_socket.c b/networking/udhcp/d6_socket.c
index 930e5e4..d00c217 100644
--- a/networking/udhcp/d6_socket.c
+++ b/networking/udhcp/d6_socket.c
@@ -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));
}
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 4fd79f4..ec6a1dc 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -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;
}