diff --git a/examples/platforms/efr32/logging.c b/examples/platforms/efr32/logging.c index 8734c2ec7..eb8a6e47a 100644 --- a/examples/platforms/efr32/logging.c +++ b/examples/platforms/efr32/logging.c @@ -34,24 +34,13 @@ #include #include - -#include #include -#include "utils/code_utils.h" - #if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...) { -#if OPENTHREAD_ENABLE_CLI_LOGGING - va_list args; - va_start(args, aFormat); - otCliLog(aLogLevel, aLogRegion, aFormat, args); - va_end(args); -#else (void)aLogLevel; (void)aLogRegion; (void)aFormat; -#endif // OPENTHREAD_ENABLE_CLI_LOGGING } #endif diff --git a/examples/platforms/kw41z/logging.c b/examples/platforms/kw41z/logging.c index cc8dbc32e..eb8a6e47a 100644 --- a/examples/platforms/kw41z/logging.c +++ b/examples/platforms/kw41z/logging.c @@ -32,36 +32,15 @@ * */ -#include "fsl_device_registers.h" -#include - #include #include - -#include "openthread/platform/logging.h" -#if OPENTHREAD_ENABLE_CLI_LOGGING -#include -#include -#include -#include -#include - -#include -#include -#endif +#include #if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...) { -#if OPENTHREAD_ENABLE_CLI_LOGGING - va_list args; - va_start(args, aFormat); - otCliLog(aLogLevel, aLogRegion, aFormat, args); - va_end(args); -#else (void)aLogLevel; (void)aLogRegion; (void)aFormat; -#endif // OPENTHREAD_ENABLE_CLI_LOGGING } #endif