mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Let vAssertCalled() produce some logging to stdout (#598)
This commit is contained in:
parent
1bc759d413
commit
db1f4542e5
1 changed files with 4 additions and 4 deletions
|
|
@ -243,14 +243,14 @@ void vAssertCalled( const char * const pcFileName,
|
||||||
{
|
{
|
||||||
static BaseType_t xPrinted = pdFALSE;
|
static BaseType_t xPrinted = pdFALSE;
|
||||||
volatile uint32_t ulSetToNonZeroInDebuggerToContinue = 0;
|
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
|
/* Called if an assertion passed to configASSERT() fails. See
|
||||||
http://www.freertos.org/a00110.html#configASSERT for more information. */
|
http://www.freertos.org/a00110.html#configASSERT for more information. */
|
||||||
|
|
||||||
/* Parameters are not used. */
|
printf( "vAssertCalled( %s, %u )\n", pcFileName, ulLine );
|
||||||
( void ) ulLine;
|
|
||||||
( void ) pcFileName;
|
|
||||||
|
|
||||||
|
|
||||||
taskENTER_CRITICAL();
|
taskENTER_CRITICAL();
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue