From 653a15d138fbce983734e6a0a022e273a60801b7 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Tue, 17 Mar 2020 17:44:25 +0100 Subject: [PATCH] net: openthread: Remove log_strdup warnings for OpenThread Log messages from the OpenThread logging system were not log_strdup() Signed-off-by: Markus Becker --- subsys/net/lib/openthread/platform/logging.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subsys/net/lib/openthread/platform/logging.c b/subsys/net/lib/openthread/platform/logging.c index c5f348c27f4..cff386f06bd 100644 --- a/subsys/net/lib/openthread/platform/logging.c +++ b/subsys/net/lib/openthread/platform/logging.c @@ -39,16 +39,16 @@ void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, switch (aLogLevel) { case OT_LOG_LEVEL_CRIT: - LOG_ERR("%s", logString); + LOG_ERR("%s", log_strdup(logString)); break; case OT_LOG_LEVEL_WARN: - LOG_WRN("%s", logString); + LOG_WRN("%s", log_strdup(logString)); break; case OT_LOG_LEVEL_INFO: - LOG_INF("%s", logString); + LOG_INF("%s", log_strdup(logString)); break; case OT_LOG_LEVEL_DEBG: - LOG_DBG("%s", logString); + LOG_DBG("%s", log_strdup(logString)); break; default: break;