Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
moninom1 committed Nov 29, 2023
1 parent 82b128a commit 4ff67c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/FreeRTOS_IP_Utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ const char * FreeRTOS_strerror_r( BaseType_t xErrnum,
/* MISRA Ref 21.6.1 [snprintf and logging] */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-216 */
/* coverity[misra_c_2012_rule_21_6_violation] */
( void ) snprintf( pcBuffer, uxLength, "Errno 0x%lx", xErrnum );
( void ) snprintf( pcBuffer, uxLength, "Errno 0x%x", xErrnum );
pcName = NULL;
break;
}
Expand Down
4 changes: 2 additions & 2 deletions source/include/FreeRTOSIPConfigDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -3067,7 +3067,7 @@

#ifndef FreeRTOS_debug_printf
#ifdef configPRINTF
#define FreeRTOS_debug_printf( MSG ) if( ipconfigHAS_DEBUG_PRINTF ) { configPRINTF( MSG ) }
#define FreeRTOS_debug_printf( MSG ) if( ipconfigHAS_DEBUG_PRINTF ) { configPRINTF( MSG ); }
#else
#define FreeRTOS_debug_printf( MSG ) do {} while( ipFALSE_BOOL )
#endif
Expand Down Expand Up @@ -3103,7 +3103,7 @@

#ifndef FreeRTOS_printf
#ifdef configPRINTF
#define FreeRTOS_printf( MSG ) if( ipconfigHAS_PRINTF ) { configPRINTF( MSG ) }
#define FreeRTOS_printf( MSG ) if( ipconfigHAS_PRINTF ) { configPRINTF( MSG ); }
#else
#define FreeRTOS_printf( MSG ) do {} while( ipFALSE_BOOL )
#endif
Expand Down

0 comments on commit 4ff67c4

Please sign in to comment.