From d2b134a0be092d1b2c6eaede48802e47abc4a54b Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Wed, 23 Nov 2022 22:57:56 +0100 Subject: [PATCH] pkg/lwip: Force loglevel when using log module lwIP has already used its own log level when deciding what to print. If we reach the LWIP_PLATFORM_DIAG message no further filtering should happen, so set the log level to match the macro used. This fixes the missing IP addresses from ifconfig. Before: > ifconfig Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up Link type: wired inet addr: mask: gw: inet6 addr: scope: link state: valid preferred inet6 addr: scope: global state: valid preferred Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up Link type: wireless inet addr: mask: gw: inet6 addr: scope: link state: valid preferred inet6 addr: scope: global state: valid preferred > With this change: > ifconfig Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up Link type: wired inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1 inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link state: valid preferred inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9f scope: global state: valid preferred Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up Link type: wireless inet addr: 10.4.4.86 mask: 255.255.254.0 gw: 10.4.4.1 inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link state: valid preferred inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9c scope: global state: valid preferred > --- pkg/lwip/include/arch/cc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lwip/include/arch/cc.h b/pkg/lwip/include/arch/cc.h index fc9eb7857d..950c0b8507 100644 --- a/pkg/lwip/include/arch/cc.h +++ b/pkg/lwip/include/arch/cc.h @@ -29,6 +29,7 @@ #include "mutex.h" #ifdef MODULE_LOG +#define LOG_LEVEL LOG_INFO #include "log.h" #endif