From bb515ab51ef2a18c681c21edfa74d4fedfbfbd2e Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sat, 21 Jan 2023 23:09:32 +0100 Subject: [PATCH] pkg/tinydtls: don't set custom log level tinyDTLS now uses RIOT's log.h --- pkg/tinydtls/Makefile.include | 6 ------ pkg/tinydtls/contrib/sock_dtls.c | 1 - 2 files changed, 7 deletions(-) diff --git a/pkg/tinydtls/Makefile.include b/pkg/tinydtls/Makefile.include index aebc670325ce..fda2825bd6ef 100644 --- a/pkg/tinydtls/Makefile.include +++ b/pkg/tinydtls/Makefile.include @@ -39,12 +39,6 @@ ifeq (,$(CONFIG_KCONFIG_USEPKG_TINYDTLS)) endif endif -ifneq (,$(or $(CONFIG_DTLS_DEBUG),$(filter -DCONFIG_DTLS_DEBUG,$(CFLAGS)))) - CFLAGS += -DTINYDTLS_LOG_LVL=6 -else - CFLAGS += -DTINYDTLS_LOG_LVL=0 -endif - # For now contrib only contains sock_dtls adaption ifneq (,$(filter tinydtls_sock_dtls,$(USEMODULE))) DIRS += $(RIOTBASE)/pkg/tinydtls/contrib diff --git a/pkg/tinydtls/contrib/sock_dtls.c b/pkg/tinydtls/contrib/sock_dtls.c index 124a0a07bdec..cab294155763 100644 --- a/pkg/tinydtls/contrib/sock_dtls.c +++ b/pkg/tinydtls/contrib/sock_dtls.c @@ -887,7 +887,6 @@ void sock_dtls_close(sock_dtls_t *sock) void sock_dtls_init(void) { dtls_init(); - dtls_set_log_level(TINYDTLS_LOG_LVL); } static void _ep_to_session(const sock_udp_ep_t *ep, session_t *session)