diff options
author | Denys Vlasenko | 2021-06-02 19:51:52 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-06-02 19:51:52 +0200 |
commit | 4bbc391c7f925d9c7d878c851887aa1545bd9bcd (patch) | |
tree | 5a4d538a5cc096067e518d88bf6915fabc464fc2 /networking/udhcp/d6_dhcpc.c | |
parent | 0ae53451cf6fd61bcfa4bc78ef575fe6606373b4 (diff) | |
download | busybox-4bbc391c7f925d9c7d878c851887aa1545bd9bcd.zip busybox-4bbc391c7f925d9c7d878c851887aa1545bd9bcd.tar.gz |
udhcpc: improve logs - show offer as it is received
function old new delta
udhcpc_main 2566 2608 +42
.rodata 103248 103272 +24
udhcp_recv_raw_packet 559 562 +3
d6_recv_raw_packet 254 255 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 70/0) Total: 70 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index b2df9f0..ef555bc 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c @@ -954,7 +954,8 @@ static NOINLINE int d6_recv_raw_packet(struct in6_addr *peer_ipv6, struct d6_pac if (peer_ipv6) *peer_ipv6 = packet.ip6.ip6_src; /* struct copy */ - log1("received %s", "a packet"); + log2("received %s", "a packet"); + /* log2 because more informative msg for valid packets is printed later at log1 level */ d6_dump_packet(&packet.data); bytes -= sizeof(packet.ip6) + sizeof(packet.udp); |