| 5364 | #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) ) |
| 5365 | |
| 5366 | static char * prvWriteNameToBuffer( char * pcBuffer, |
| 5367 | const char * pcTaskName ) |
| 5368 | { |
| 5369 | size_t x; |
| 5370 | |
| 5371 | /* Start by copying the entire string. */ |
| 5372 | strcpy( pcBuffer, pcTaskName ); |
| 5373 | |
| 5374 | /* Pad the end of the string with spaces to ensure columns line up when |
| 5375 | * printed out. */ |
| 5376 | for( x = strlen( pcBuffer ); x < ( size_t ) ( configMAX_TASK_NAME_LEN - 1 ); x++ ) |
| 5377 | { |
| 5378 | pcBuffer[ x ] = ' '; |
| 5379 | } |
| 5380 | |
| 5381 | /* Terminate. */ |
| 5382 | pcBuffer[ x ] = ( char ) 0x00; |
| 5383 | |
| 5384 | /* Return the new end of string. */ |
| 5385 | return &( pcBuffer[ x ] ); |
| 5386 | } |
| 5387 | |
| 5388 | #endif /* ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) */ |
| 5389 | /*-----------------------------------------------------------*/ |
no outgoing calls
no test coverage detected