samples: net: dns_resolve: 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
2f0f88ebf1
commit
85e7610fab
|
@ -8,19 +8,7 @@ CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
|
|||
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
|
||||
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG=y
|
||||
CONFIG_SYS_LOG_NET_LEVEL=2
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_NET_DEBUG_NET_PKT=y
|
||||
CONFIG_NET_DEBUG_DNS_RESOLVE=y
|
||||
#CONFIG_NET_DEBUG_CONTEXT=y
|
||||
#CONFIG_NET_DEBUG_CORE=y
|
||||
#CONFIG_NET_DEBUG_IF=y
|
||||
#CONFIG_NET_DEBUG_IPV4=y
|
||||
#CONFIG_NET_DEBUG_IPV6=y
|
||||
#CONFIG_NET_DEBUG_UDP=y
|
||||
#CONFIG_NET_DEBUG_DHCPV4=y
|
||||
#CONFIG_NET_DEBUG_L2_ETHERNET=y
|
||||
CONFIG_LOG=y
|
||||
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_IPV4=y
|
||||
|
|
|
@ -11,14 +11,10 @@ tests:
|
|||
- CONFIG_MDNS_RESOLVER=y
|
||||
- CONFIG_LLMNR_RESOLVER=n
|
||||
- CONFIG_NET_DHCPV4=y
|
||||
- CONFIG_NET_DEBUG_APP=y
|
||||
- CONFIG_SYS_LOG_NET_LEVEL=4
|
||||
tags: mdns
|
||||
test_llmnr:
|
||||
extra_configs:
|
||||
- CONFIG_MDNS_RESOLVER=n
|
||||
- CONFIG_LLMNR_RESOLVER=y
|
||||
- CONFIG_NET_DHCPV4=y
|
||||
- CONFIG_NET_DEBUG_APP=y
|
||||
- CONFIG_SYS_LOG_NET_LEVEL=4
|
||||
tags: llmnr
|
||||
|
|
|
@ -4,11 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if 1
|
||||
#define SYS_LOG_DOMAIN "dns-res"
|
||||
#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
|
||||
#define NET_LOG_ENABLED 1
|
||||
#endif
|
||||
#define LOG_MODULE_NAME net_dns_resolve_client
|
||||
#define NET_LOG_LEVEL LOG_LEVEL_DBG
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <linker/sections.h>
|
||||
|
|
Loading…
Reference in a new issue