diff --git a/samples/net/eth_native_posix/prj.conf b/samples/net/eth_native_posix/prj.conf index 2d7ec08e4d9..59657ab453f 100644 --- a/samples/net/eth_native_posix/prj.conf +++ b/samples/net/eth_native_posix/prj.conf @@ -9,10 +9,8 @@ CONFIG_ENTROPY_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_INIT_STACKS=y -CONFIG_SYS_LOG=y -CONFIG_SYS_LOG_SHOW_COLOR=y CONFIG_NET_LOG=y -CONFIG_SYS_LOG_NET_LEVEL=4 +CONFIG_LOG=y CONFIG_NET_STATISTICS=y @@ -27,17 +25,10 @@ CONFIG_NET_MAX_CONTEXTS=10 CONFIG_NET_SHELL=y -CONFIG_NET_DEBUG_CORE=n -CONFIG_NET_DEBUG_L2_ETHERNET=n -CONFIG_NET_DEBUG_IF=n -CONFIG_NET_DEBUG_IPV6=n -CONFIG_NET_DEBUG_NET_PKT=y - CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_NEED_IPV6=y CONFIG_NET_CONFIG_NEED_IPV4=y CONFIG_NET_APP_SERVER=y -CONFIG_NET_DEBUG_APP=n CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" @@ -46,6 +37,5 @@ CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" CONFIG_NET_L2_ETHERNET=y CONFIG_ETH_NATIVE_POSIX=y -CONFIG_SYS_LOG_ETHERNET_LEVEL=1 CONFIG_ETH_NATIVE_POSIX_RANDOM_MAC=y #CONFIG_ETH_NATIVE_POSIX_MAC_ADDR="00:00:5e:00:53:2a" diff --git a/samples/net/eth_native_posix/src/main.c b/samples/net/eth_native_posix/src/main.c index 6c7187a5826..b2ea1db1b54 100644 --- a/samples/net/eth_native_posix/src/main.c +++ b/samples/net/eth_native_posix/src/main.c @@ -4,15 +4,18 @@ * SPDX-License-Identifier: Apache-2.0 */ +#define LOG_MODULE_NAME net_native_posix +#define NET_LOG_LEVEL LOG_LEVEL_DBG + #include -#include #include -#include + +#include /* This application itself does nothing as there is net-shell that can be used * to monitor things. */ void main(void) { - SYS_LOG_INF("Start application"); + NET_INFO("Start application"); }