diff --git a/source/FreeRTOS_Routing.c b/source/FreeRTOS_Routing.c index d0dfbbb3d..65304fc49 100644 --- a/source/FreeRTOS_Routing.c +++ b/source/FreeRTOS_Routing.c @@ -594,8 +594,8 @@ struct xIPv6_Couple /* This was only for debugging. */ if( pxEndPoint == NULL ) { - FreeRTOS_printf( ( "FreeRTOS_FindEndPointOnNetMask[%d]: No match for %xip\n", - ( unsigned ) ulWhere, ( unsigned ) FreeRTOS_ntohl( ulIPAddress ) ) ); + FreeRTOS_debug_printf( ( "FreeRTOS_FindEndPointOnNetMask[%d]: No match for %xip\n", + ( unsigned ) ulWhere, ( unsigned ) FreeRTOS_ntohl( ulIPAddress ) ) ); } return pxEndPoint; @@ -766,9 +766,9 @@ struct xIPv6_Couple if( xGatewayTarget == pdTRUE ) { - FreeRTOS_printf( ( " GW address %pip to %pip\n", - pxIPAddressFrom->xIP_IPv6.ucBytes, - pxIPAddressTo->xIP_IPv6.ucBytes ) ); + FreeRTOS_debug_printf( ( " GW address %pip to %pip\n", + pxIPAddressFrom->xIP_IPv6.ucBytes, + pxIPAddressTo->xIP_IPv6.ucBytes ) ); } xTargetGlobal = ( xIPv6_GetIPType( &( pxIPAddressTo->xIP_IPv6 ) ) == eIPv6_Global ) ? pdTRUE : pdFALSE; @@ -872,13 +872,13 @@ struct xIPv6_Couple pcBufferFrom, sizeof( pcBufferFrom ) ); - FreeRTOS_printf( ( "EasyFit[%x]: %d %d %d ( %s ->%s ) BAD\n", - usFrameType, - ( unsigned ) xCount[ 0 ], - ( unsigned ) xCount[ 1 ], - ( unsigned ) xCount[ 2 ], - ( xRetNtopFrom == NULL ) ? "INVALID" : pcBufferFrom, - ( xRetNtopTo == NULL ) ? "INVALID" : pcBufferTo ) ); + FreeRTOS_debug_printf( ( "EasyFit[%x]: %d %d %d ( %s ->%s ) BAD\n", + usFrameType, + ( unsigned ) xCount[ 0 ], + ( unsigned ) xCount[ 1 ], + ( unsigned ) xCount[ 2 ], + ( xRetNtopFrom == NULL ) ? "INVALID" : pcBufferFrom, + ( xRetNtopTo == NULL ) ? "INVALID" : pcBufferTo ) ); } #endif /* ( ipconfigHAS_PRINTF != 0 ) */ @@ -984,7 +984,7 @@ struct xIPv6_Couple /* do nothing, coverity happy */ } - FreeRTOS_printf( ( "pxEasyFit: ARP %xip -> %xip\n", ( unsigned ) FreeRTOS_ntohl( xIPAddressFrom.ulIP_IPv4 ), ( unsigned ) FreeRTOS_ntohl( xIPAddressTo.ulIP_IPv4 ) ) ); + FreeRTOS_debug_printf( ( "pxEasyFit: ARP %xip -> %xip\n", ( unsigned ) FreeRTOS_ntohl( xIPAddressFrom.ulIP_IPv4 ), ( unsigned ) FreeRTOS_ntohl( xIPAddressTo.ulIP_IPv4 ) ) ); } xDoProcessPacket = pdTRUE; #endif /* ( ipconfigUSE_IPv4 != 0 ) */ diff --git a/source/portable/NetworkInterface/STM32Fxx/NetworkInterface.c b/source/portable/NetworkInterface/STM32Fxx/NetworkInterface.c index 0b20602ec..1ca0f186e 100644 --- a/source/portable/NetworkInterface/STM32Fxx/NetworkInterface.c +++ b/source/portable/NetworkInterface/STM32Fxx/NetworkInterface.c @@ -994,7 +994,7 @@ static BaseType_t xMayAcceptPacket( uint8_t * pucEthernetBuffer ) #endif ( *ipLOCAL_IP_ADDRESS_POINTER != 0 ) ) { - FreeRTOS_printf( ( "Drop IP %lxip\n", FreeRTOS_ntohl( ulDestinationIPAddress ) ) ); + FreeRTOS_debug_printf( ( "Drop IP %lxip\n", FreeRTOS_ntohl( ulDestinationIPAddress ) ) ); return pdFALSE; } @@ -1503,9 +1503,9 @@ static void prvEMACHandlerTask( void * pvParameters ) #if ( ipconfigSUPPORT_NETWORK_DOWN_EVENT != 0 ) { - if( xGetPhyLinkStatus() == pdFALSE ) + if( xGetPhyLinkStatus( pxMyInterface ) == pdFALSE ) { - FreeRTOS_NetworkDown(); + FreeRTOS_NetworkDown( pxMyInterface ); } } #endif /* ( ipconfigSUPPORT_NETWORK_DOWN_EVENT != 0 ) */