You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-216 */
7353
+
/* coverity[misra_c_2012_rule_21_6_violation] */
7351
7354
iSnprintfReturnValue=snprintf( pcWriteBuffer,
7352
7355
uxBufferLength-uxConsumedBufferLength,
7353
7356
"\t%c\t%u\t%u\t%u\t0x%x\r\n",
7354
7357
cStatus,
7355
7358
( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority,
7356
7359
( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark,
7357
7360
( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber,
7358
-
( unsigned int ) pxTaskStatusArray[ x ].uxCoreAffinityMask );/*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. */
7361
+
( unsigned int ) pxTaskStatusArray[ x ].uxCoreAffinityMask );
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-216 */
7365
+
/* coverity[misra_c_2012_rule_21_6_violation] */
7360
7366
iSnprintfReturnValue=snprintf( pcWriteBuffer,
7361
7367
uxBufferLength-uxConsumedBufferLength,
7362
7368
"\t%c\t%u\t%u\t%u\r\n",
7363
7369
cStatus,
7364
7370
( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority,
7365
7371
( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark,
7366
-
( 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. */
7372
+
( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber );
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-216 */
7507
+
/* coverity[misra_c_2012_rule_21_6_violation] */
7499
7508
iSnprintfReturnValue=snprintf( pcWriteBuffer,
7500
7509
uxBufferLength-uxConsumedBufferLength,
7501
7510
"\t%lu\t\t%lu%%\r\n",
7502
7511
pxTaskStatusArray[ x ].ulRunTimeCounter,
7503
7512
ulStatsAsPercentage );
7504
7513
}
7505
-
#else
7514
+
#else/* ifdef portLU_PRINTF_SPECIFIER_REQUIRED */
7506
7515
{
7507
7516
/* sizeof( int ) == sizeof( long ) so a smaller
7508
7517
* printf() library can be used. */
7518
+
/* MISRA Ref 21.6.1 [snprintf for utility] */
7519
+
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-216 */
7520
+
/* coverity[misra_c_2012_rule_21_6_violation] */
7509
7521
iSnprintfReturnValue=snprintf( pcWriteBuffer,
7510
7522
uxBufferLength-uxConsumedBufferLength,
7511
7523
"\t%u\t\t%u%%\r\n",
7512
7524
( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter,
7513
-
( unsigned int ) ulStatsAsPercentage );/*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. */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-216 */
7549
+
/* coverity[misra_c_2012_rule_21_6_violation] */
7532
7550
iSnprintfReturnValue=snprintf( pcWriteBuffer,
7533
7551
uxBufferLength-uxConsumedBufferLength,
7534
7552
"\t%u\t\t<1%%\r\n",
7535
-
( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter );/*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. */
7553
+
( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter );
0 commit comments