summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko2019-05-31 23:51:07 +0200
committerDenys Vlasenko2019-05-31 23:52:16 +0200
commit6eb6e6a1e9d6e7d4dd154014ce404ec1c8175fb2 (patch)
treea950b90ed615ba17e6f9687d8bbacd8829565a23 /networking/udhcp
parent65c34c52df3ed46f0b811d1858c271a373ab6af5 (diff)
downloadbusybox-6eb6e6a1e9d6e7d4dd154014ce404ec1c8175fb2.zip
busybox-6eb6e6a1e9d6e7d4dd154014ce404ec1c8175fb2.tar.gz
dhcp: downgrade "got raw socket fd" message to log3, make log2 default max
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>
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/Config.src2
-rw-r--r--networking/udhcp/d6_dhcpc.c2
-rw-r--r--networking/udhcp/dhcpc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index f16fc0a..8ef2474 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -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
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 02766ba..422b888 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -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;
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index f040e93..739870b 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -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;