[config] rename INITIAL_LOG_LEVEL to LOG_LEVEL_INIT (#4418)

This commit is contained in:
Jonathan Hui
2019-12-18 15:43:44 -08:00
parent 37d136d0fb
commit 7695a2e0e4
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ Instance::Instance(void)
, mLinkRaw(*this)
#endif
#if OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
, mLogLevel(static_cast<otLogLevel>(OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL))
, mLogLevel(static_cast<otLogLevel>(OPENTHREAD_CONFIG_LOG_LEVEL_INIT))
#endif
#if OPENTHREAD_ENABLE_VENDOR_EXTENSION
, mExtension(Extension::ExtensionBase::Init(*this))
+5 -6
View File
@@ -74,9 +74,8 @@
/**
* @def OPENTHREAD_CONFIG_LOG_LEVEL
*
* The log level (used at compile time). If `OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE`
* is set, this defines the most verbose log level possible. See
*`OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL` to set the initial log level.
* The log level (used at compile time). If `OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE` is set, this defines the most
* verbose log level possible. See `OPENTHREAD_CONFIG_LOG_LEVEL_INIT` to set the initial log level.
*
*/
#ifndef OPENTHREAD_CONFIG_LOG_LEVEL
@@ -98,13 +97,13 @@
#endif
/**
* @def OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL
* @def OPENTHREAD_CONFIG_LOG_LEVEL_INIT
*
* The initial log level used when OpenThread is initialized. See
* `OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE`.
*/
#ifndef OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL
#define OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL OPENTHREAD_CONFIG_LOG_LEVEL
#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_INIT
#define OPENTHREAD_CONFIG_LOG_LEVEL_INIT OPENTHREAD_CONFIG_LOG_LEVEL
#endif
/**
@@ -459,4 +459,8 @@
#error "OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE."
#endif
#ifdef OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL
#error "OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_INIT."
#endif
#endif // OPENTHREAD_CORE_CONFIG_CHECK_H_