Let vAssertCalled() produce some logging to stdout (#598)

pull/596/head
Hein Tibosch 4 years ago committed by GitHub
parent 1bc759d413
commit db1f4542e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
{

Loading…
Cancel
Save