mirror of
https://github.com/espressif/openthread.git
synced 2026-09-23 09:27:40 +00:00
[mle] fix logging at NOTE level (#2933)
This commit fixes the issue when building at `LOG_LEVEL_NOTE` ensuring methods such as `AttachModeToString` are included.
This commit is contained in:
committed by
Jonathan Hui
parent
3acd900bdf
commit
2aa335144c
@@ -4076,7 +4076,7 @@ const char *Mle::RoleToString(otDeviceRole aRole)
|
||||
return roleString;
|
||||
}
|
||||
|
||||
#if (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_INFO) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
#if (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_NOTE) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
const char *Mle::AttachModeToString(AttachMode aMode)
|
||||
{
|
||||
const char *str = "unknown";
|
||||
@@ -4171,7 +4171,7 @@ const char *Mle::ReattachStateToString(ReattachState aState)
|
||||
return str;
|
||||
}
|
||||
|
||||
#endif // (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_INFO) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
#endif // (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_NOTE) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
|
||||
} // namespace Mle
|
||||
} // namespace ot
|
||||
|
||||
@@ -1522,7 +1522,7 @@ protected:
|
||||
*/
|
||||
void InformPreviousChannel(void);
|
||||
|
||||
#if (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_INFO) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
#if (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_NOTE) && (OPENTHREAD_CONFIG_LOG_MLE == 1)
|
||||
/**
|
||||
* This method converts an `AttachMode` enumeration value into a human-readable string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user