Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions modules/openthread/platform/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
*/

#include <zephyr/kernel.h>
#include <zephyr/logging/log_core.h>
#include <stdarg.h>
#include <stdio.h>

#include <openthread/platform/logging.h>
#include "openthread-core-zephyr-config.h"

#define LOG_MODULE_NAME net_openthread
#define LOG_LEVEL LOG_LEVEL_DBG
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);

#include "platform-zephyr.h"

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

if (level < 0) {
if (level < 0 || level > CONFIG_OPENTHREAD_PLATFORM_LOG_LEVEL) {
return;
}

Expand Down