Skip to content

Commit d44ae74

Browse files
committed
Fix formatting
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent 76d4d8d commit d44ae74

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

include/stack_macros.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,20 @@
8888

8989
#if ( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) )
9090

91-
#define taskCHECK_FOR_STACK_OVERFLOW() \
92-
do { \
93-
const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
94-
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
95-
\
96-
if( ( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack + portSTACK_LIMIT_PADDING ) || \
97-
( pulStack[ 0 ] != ulCheckValue ) || \
98-
( pulStack[ 1 ] != ulCheckValue ) || \
99-
( pulStack[ 2 ] != ulCheckValue ) || \
100-
( pulStack[ 3 ] != ulCheckValue ) ) \
101-
{ \
102-
char * pcOverflowTaskName = pxCurrentTCB->pcTaskName; \
103-
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pcOverflowTaskName ); \
104-
} \
91+
#define taskCHECK_FOR_STACK_OVERFLOW() \
92+
do { \
93+
const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
94+
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
95+
\
96+
if( ( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack + portSTACK_LIMIT_PADDING ) || \
97+
( pulStack[ 0 ] != ulCheckValue ) || \
98+
( pulStack[ 1 ] != ulCheckValue ) || \
99+
( pulStack[ 2 ] != ulCheckValue ) || \
100+
( pulStack[ 3 ] != ulCheckValue ) ) \
101+
{ \
102+
char * pcOverflowTaskName = pxCurrentTCB->pcTaskName; \
103+
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pcOverflowTaskName ); \
104+
} \
105105
} while( 0 )
106106

107107
#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */

0 commit comments

Comments
 (0)