From 0dd689752cac74acf2041d7cdcfded903de41810 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 13 Mar 2018 18:10:11 +0000 Subject: [PATCH] [logging] remove deprecated use of OPENTHREAD_ENABLE_CLI_LOGGING (#2605) --- examples/platforms/efr32/logging.c | 11 ----------- examples/platforms/kw41z/logging.c | 23 +---------------------- 2 files changed, 1 insertion(+), 33 deletions(-) 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