Skip to content

Commit

Permalink
Update FreeRTOS_debug_printf in ipARP_REPLY (#1048)
Browse files Browse the repository at this point in the history
Replace ipconfigHAS_PRINTF by FreeRTOS_debug_printf in the ipARP_REPLY debug print
  • Loading branch information
microcris committed Nov 30, 2023
1 parent c80540c commit 8133702
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/FreeRTOS_ARP.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ static TickType_t xLastGratuitousARPTime = 0U;
traceARP_PACKET_RECEIVED();

/* Some extra logging while still testing. */
#if ( ipconfigHAS_PRINTF != 0 )
#if ( ipconfigHAS_DEBUG_PRINTF != 0 )
if( pxARPHeader->usOperation == ( uint16_t ) ipARP_REPLY )
{
FreeRTOS_printf( ( "ipARP_REPLY from %xip to %xip end-point %xip\n",
( unsigned ) FreeRTOS_ntohl( ulSenderProtocolAddress ),
( unsigned ) FreeRTOS_ntohl( ulTargetProtocolAddress ),
( unsigned ) FreeRTOS_ntohl( ( pxTargetEndPoint != NULL ) ? pxTargetEndPoint->ipv4_settings.ulIPAddress : 0U ) ) );
FreeRTOS_debug_printf( ( "ipARP_REPLY from %xip to %xip end-point %xip\n",
( unsigned ) FreeRTOS_ntohl( ulSenderProtocolAddress ),
( unsigned ) FreeRTOS_ntohl( ulTargetProtocolAddress ),
( unsigned ) FreeRTOS_ntohl( ( pxTargetEndPoint != NULL ) ? pxTargetEndPoint->ipv4_settings.ulIPAddress : 0U ) ) );
}
#endif /* ( ipconfigHAS_DEBUG_PRINTF != 0 ) */

Expand Down

0 comments on commit 8133702

Please sign in to comment.