Skip to content

Commit

Permalink
udhcpc[6]: downgrade "adapter index N" messages to log2 level
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Vlasenko <[email protected]>
  • Loading branch information
Denys Vlasenko committed Jul 24, 2017
1 parent de6cb41 commit b72f1ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions networking/udhcp/d6_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion networking/udhcp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b72f1ef

Please sign in to comment.