[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:
Abtin Keshavarzian
2018-07-31 11:18:12 -05:00
committed by Jonathan Hui
parent 3acd900bdf
commit 2aa335144c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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.
*