mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Fix logging issue causing mangled new lines (#391)
* Fix logging issue caused by using \n as the default newline character * Update the other demos * Fix accidentally changed NETWORK_INTERFACE * Set \r\n as default instead * Update sources to reflect \r\n change * Get rid of configLOGGING_NEW_LINE altogether Co-authored-by: abhidixi11 <44424462+abhidixi11@users.noreply.github.com>
This commit is contained in:
parent
54d549cd0e
commit
52d7c47cd4
10 changed files with 238 additions and 278 deletions
|
|
@ -286,7 +286,7 @@ void vLoggingPrintf( const char * pcFormat,
|
|||
pcTaskName = pcNoTask;
|
||||
}
|
||||
|
||||
if( strcmp( pcFormat, "\n" ) != 0 )
|
||||
if( strcmp( pcFormat, "\r\n" ) != 0 )
|
||||
{
|
||||
xLength = snprintf( cPrintString, dlMAX_PRINT_STRING_LENGTH, "%lu %lu [%s] ",
|
||||
xMessageNumber++,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue