From da4ddd7bf0a6879ae7954ffff4f729003c14a648 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 4 Dec 2017 12:23:22 -0800 Subject: [PATCH] [style] fix alignments (#2386) --- src/core/mac/mac.cpp | 8 +++++--- src/core/openthread-core-default-config.h | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) 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 /**