diff --git a/source/FreeRTOS_IP_Utils.c b/source/FreeRTOS_IP_Utils.c index 73ad81c108..93424a36a7 100644 --- a/source/FreeRTOS_IP_Utils.c +++ b/source/FreeRTOS_IP_Utils.c @@ -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; } diff --git a/source/include/FreeRTOSIPConfigDefaults.h b/source/include/FreeRTOSIPConfigDefaults.h index 0b9c2d90ab..49b47e7131 100644 --- a/source/include/FreeRTOSIPConfigDefaults.h +++ b/source/include/FreeRTOSIPConfigDefaults.h @@ -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 @@ -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