mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-20 15:20:40 +08:00
Let vAssertCalled() produce some logging to stdout (#598)
This commit is contained in:
@ -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();
|
||||
{
|
||||
|
Reference in New Issue
Block a user