[logging] remove otLogWarnMleErr (#4398)

This commit is contained in:
Jonathan Hui
2019-12-13 17:18:16 -08:00
parent 235d440e5d
commit 88b2fa6fbb
3 changed files with 7 additions and 11 deletions
-4
View File
@@ -385,16 +385,12 @@ extern "C" {
#if OPENTHREAD_CONFIG_LOG_MLE == 1
#define otLogCritMle(aFormat, ...) otLogCrit(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX aFormat, ##__VA_ARGS__)
#define otLogWarnMle(aFormat, ...) otLogWarn(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX aFormat, ##__VA_ARGS__)
#define otLogWarnMleErr(aError, aFormat, ...) \
otLogWarn(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX "Error %s: " aFormat, otThreadErrorToString(aError), \
##__VA_ARGS__)
#define otLogNoteMle(aFormat, ...) otLogNote(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX aFormat, ##__VA_ARGS__)
#define otLogInfoMle(aFormat, ...) otLogInfo(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX aFormat, ##__VA_ARGS__)
#define otLogDebgMle(aFormat, ...) otLogDebg(OT_LOG_REGION_MLE, _OT_REGION_MLE_PREFIX aFormat, ##__VA_ARGS__)
#else
#define otLogCritMle(aFormat, ...)
#define otLogWarnMle(aFormat, ...)
#define otLogWarnMleErr(aError, aFormat, ...)
#define otLogNoteMle(aFormat, ...)
#define otLogInfoMle(aFormat, ...)
#define otLogDebgMle(aFormat, ...)
+6 -6
View File
@@ -2896,7 +2896,7 @@ otError Mle::HandleDataResponse(const Message & aMessage,
if (error != OT_ERROR_NONE)
{
otLogWarnMleErr(error, "Failed to process Data Response");
otLogWarnMle("Failed to process Data Response: %s", otThreadErrorToString(error));
}
if (mDataRequestState == kDataRequestNone && !IsRxOnWhenIdle())
@@ -3325,7 +3325,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMleErr(error, "Failed to process Parent Response");
otLogWarnMle("Failed to process Parent Response: %s", otThreadErrorToString(error));
}
return error;
@@ -3450,7 +3450,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMleErr(error, "Failed to process Child ID Response");
otLogWarnMle("Failed to process Child ID Response: %s", otThreadErrorToString(error));
}
return error;
@@ -3660,7 +3660,7 @@ exit:
}
else
{
otLogWarnMleErr(error, "Failed to process Child Update Response");
otLogWarnMle("Failed to process Child Update Response: %s", otThreadErrorToString(error));
}
return error;
@@ -3854,7 +3854,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMleErr(error, "Failed to process Discovery Response");
otLogWarnMle("Failed to process Discovery Response: %s", otThreadErrorToString(error));
}
return error;
@@ -4009,7 +4009,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMle("Failed to inform previous parent, error:%s", otThreadErrorToString(error));
otLogWarnMle("Failed to inform previous parent: %s", otThreadErrorToString(error));
if (message != NULL)
{
+1 -1
View File
@@ -2706,7 +2706,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMleErr(error, "Failed to process Discovery Request");
otLogWarnMle("Failed to process Discovery Request: %s", otThreadErrorToString(error));
}
return error;