Skip to content

Commit a32ff47

Browse files
authored
Merge branch 'main' into new-dvfs-clock-control
2 parents e87a4eb + 20d3002 commit a32ff47

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

modules/openthread/platform/logging.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
*/
66

77
#include <zephyr/kernel.h>
8+
#include <zephyr/logging/log_core.h>
89
#include <stdarg.h>
9-
#include <stdio.h>
1010

1111
#include <openthread/platform/logging.h>
12-
#include "openthread-core-zephyr-config.h"
13-
14-
#define LOG_MODULE_NAME net_openthread
15-
#define LOG_LEVEL LOG_LEVEL_DBG
16-
#include <zephyr/logging/log.h>
17-
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
1812

1913
#include "platform-zephyr.h"
2014

@@ -49,7 +43,7 @@ void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat
4943
int level = log_translate(aLogLevel);
5044
va_list param_list;
5145

52-
if (level < 0) {
46+
if (level < 0 || level > CONFIG_OPENTHREAD_PLATFORM_LOG_LEVEL) {
5347
return;
5448
}
5549

0 commit comments

Comments
 (0)