diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/main.c b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/main.c index 0cf0a07094..4abe498c70 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/main.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/main.c @@ -243,14 +243,14 @@ void vAssertCalled( const char * const pcFileName, { static BaseType_t xPrinted = pdFALSE; volatile uint32_t ulSetToNonZeroInDebuggerToContinue = 0; +/* Copy the parameters to local volatile variables, just for debugging */ +volatile char * pcFile = ( volatile char * ) pcFileName; +volatile uint32_t ulLineNumber = ulLine; /* Called if an assertion passed to configASSERT() fails. See http://www.freertos.org/a00110.html#configASSERT for more information. */ - /* Parameters are not used. */ - ( void ) ulLine; - ( void ) pcFileName; - + printf( "vAssertCalled( %s, %u )\n", pcFileName, ulLine ); taskENTER_CRITICAL(); {