diff --git a/src/core/mac/mac.cpp b/src/core/mac/mac.cpp index 9fc1d792a..56d6985d5 100644 --- a/src/core/mac/mac.cpp +++ b/src/core/mac/mac.cpp @@ -1902,12 +1902,14 @@ bool Mac::RadioSupportsRetries(void) void Mac::FillMacCountersTlv(NetworkDiagnostic::MacCountersTlv &aMacCounters) const { aMacCounters.SetIfInUnknownProtos(mCounters.mRxOther); - aMacCounters.SetIfInErrors(mCounters.mRxErrNoFrame + mCounters.mRxErrUnknownNeighbor + mCounters.mRxErrInvalidSrcAddr + - mCounters.mRxErrSec + mCounters.mRxErrFcs + mCounters.mRxErrOther); + aMacCounters.SetIfInErrors(mCounters.mRxErrNoFrame + mCounters.mRxErrUnknownNeighbor + + mCounters.mRxErrInvalidSrcAddr + mCounters.mRxErrSec + mCounters.mRxErrFcs + + mCounters.mRxErrOther); aMacCounters.SetIfOutErrors(mCounters.mTxErrCca); aMacCounters.SetIfInUcastPkts(mCounters.mRxUnicast); aMacCounters.SetIfInBroadcastPkts(mCounters.mRxBroadcast); - aMacCounters.SetIfInDiscards(mCounters.mRxAddressFiltered + mCounters.mRxDestAddrFiltered + mCounters.mRxDuplicated); + aMacCounters.SetIfInDiscards(mCounters.mRxAddressFiltered + mCounters.mRxDestAddrFiltered + + mCounters.mRxDuplicated); aMacCounters.SetIfOutUcastPkts(mCounters.mTxUnicast); aMacCounters.SetIfOutBroadcastPkts(mCounters.mTxBroadcast); aMacCounters.SetIfOutDiscards(mCounters.mTxErrBusyChannel); diff --git a/src/core/openthread-core-default-config.h b/src/core/openthread-core-default-config.h index 54dc75a86..e5faefbbe 100644 --- a/src/core/openthread-core-default-config.h +++ b/src/core/openthread-core-default-config.h @@ -537,7 +537,7 @@ * */ #ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED #endif /** Log output goes to the bit bucket (disabled) */ @@ -856,7 +856,7 @@ * */ #ifndef OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER -#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0 +#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0 #endif /**