samples: net: stats: Convert to new logging system
Use new logging system with support for network log level. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
7b2bdfc491
commit
b08d420fad
|
@ -44,11 +44,4 @@ CONFIG_NET_CONFIG_SETTINGS=y
|
|||
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
||||
|
||||
# Logging
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_SYS_LOG_NET_LEVEL=4
|
||||
|
||||
# Debug options
|
||||
CONFIG_NET_DEBUG_NET_PKT=y
|
||||
CONFIG_NET_DEBUG_L2_ETHERNET=n
|
||||
CONFIG_NET_DEBUG_ARP=n
|
||||
CONFIG_NET_DEBUG_IF=n
|
||||
CONFIG_LOG=y
|
||||
|
|
|
@ -4,11 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if 1
|
||||
#define SYS_LOG_DOMAIN "net-stats"
|
||||
#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
|
||||
#define NET_LOG_ENABLED 1
|
||||
#endif
|
||||
#define LOG_MODULE_NAME net_stats_sample
|
||||
#define NET_LOG_LEVEL LOG_LEVEL_DBG
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <errno.h>
|
||||
|
|
Loading…
Reference in a new issue