From 4bbc391c7f925d9c7d878c851887aa1545bd9bcd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 2 Jun 2021 19:51:52 +0200 Subject: 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 --- networking/udhcp/d6_packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'networking/udhcp/d6_packet.c') diff --git a/networking/udhcp/d6_packet.c b/networking/udhcp/d6_packet.c index 172f8e1..c1949f6 100644 --- a/networking/udhcp/d6_packet.c +++ b/networking/udhcp/d6_packet.c @@ -44,7 +44,8 @@ int FAST_FUNC d6_recv_kernel_packet(struct in6_addr *peer_ipv6 bb_simple_info_msg("packet with bad magic, ignoring"); return -2; } - 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); return bytes; -- cgit v1.1