summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2021-06-02 20:23:43 +0200
committerDenys Vlasenko2021-06-02 20:23:43 +0200
commit01daecca1d908c7f08421cff815d81bd8ec3009a (patch)
tree15d46a471b38eae1e125b2304aa6e0c23758cbac
parent4bbc391c7f925d9c7d878c851887aa1545bd9bcd (diff)
downloadbusybox-01daecca1d908c7f08421cff815d81bd8ec3009a.zip
busybox-01daecca1d908c7f08421cff815d81bd8ec3009a.tar.gz
udhcpc[6]: remove superfluous "created raw socket" log message
function old new delta change_listen_mode 299 280 -19 .rodata 103272 103250 -22 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-41) Total: -41 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/udhcp/d6_dhcpc.c3
-rw-r--r--networking/udhcp/dhcpc.c4
-rw-r--r--networking/udhcp/socket.c2
3 files changed, 2 insertions, 7 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index ef555bc..5554466 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -1063,9 +1063,6 @@ static int d6_raw_socket(int ifindex)
log1("attached filter to raw socket fd %d", fd); // log?
}
#endif
-
- log1s("created raw socket");
-
return fd;
}
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index a30632d..f441976 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1093,8 +1093,6 @@ static int udhcp_raw_socket(int ifindex)
log1s("can't set PACKET_AUXDATA on raw socket");
}
- log1s("created raw socket");
-
return fd;
}
@@ -1701,7 +1699,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
}
/*xid = packet.xid; - already is */
temp_addr.s_addr = requested_ip = packet.yiaddr;
- log1("received an offer of %s", inet_ntoa(temp_addr));
+ log1("received offer of %s", inet_ntoa(temp_addr));
/* enter requesting state */
client_data.state = REQUESTING;
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 65a1a8e..35e1068 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -82,7 +82,7 @@ int FAST_FUNC udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf)
struct sockaddr_in addr;
char *colon;
- log1("opening listen socket on *:%d %s", port, inf);
+ log2("opening listen socket on *:%d %s", port, inf);
fd = xsocket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
setsockopt_reuseaddr(fd);