mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(freertos): display tasks with no affinity as -1 during tracing
Closes https://github.com/espressif/esp-idf/issues/12858
This commit is contained in:
parent
f27d65c7bc
commit
1472343439
@ -5440,7 +5440,8 @@ static void prvResetNextTaskUnblockTime( void )
|
|||||||
/* Write the rest of the string. */
|
/* Write the rest of the string. */
|
||||||
#if ( configTASKLIST_INCLUDE_COREID == 1 )
|
#if ( configTASKLIST_INCLUDE_COREID == 1 )
|
||||||
{
|
{
|
||||||
sprintf( pcWriteBuffer, "\t%c\t%u\t%d\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( unsigned int ) pxTaskStatusArray[ x ].xCoreID, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */
|
const BaseType_t xCoreID = ( pxTaskStatusArray[ x ].xCoreID == tskNO_AFFINITY ) ? -1 : pxTaskStatusArray[ x ].xCoreID ;
|
||||||
|
sprintf( pcWriteBuffer, "\t%c\t%u\t%d\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( int ) xCoreID, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */
|
||||||
}
|
}
|
||||||
#else /* configTASKLIST_INCLUDE_COREID == 1 */
|
#else /* configTASKLIST_INCLUDE_COREID == 1 */
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user