Skip to content

Commit fc71939

Browse files
authored
Eliminate some warnings (#578)
* Eliminate some warnings related to print statements Authored-by: Pete Bone <[email protected] >
1 parent 9bd9d28 commit fc71939

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

source/FreeRTOS_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ static eFrameProcessingResult_t prvAllowIPPacket( const IPPacket_t * const pxIPP
15631563
if( xCount < 5 ) /* LCOV_EXCL_BR_LINE */
15641564
{
15651565
FreeRTOS_printf( ( "prvAllowIPPacket: UDP packet from %xip without CRC dropped\n",
1566-
FreeRTOS_ntohl( pxIPPacket->xIPHeader.ulSourceIPAddress ) ) );
1566+
( unsigned ) FreeRTOS_ntohl( pxIPPacket->xIPHeader.ulSourceIPAddress ) ) );
15671567
xCount++;
15681568
}
15691569
}

source/FreeRTOS_IP_Utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ uint16_t usGenerateProtocolChecksum( uint8_t * pucEthernetBuffer,
640640
if( xCount < 5 ) /* LCOV_EXCL_BR_LINE */
641641
{
642642
FreeRTOS_printf( ( "usGenerateProtocolChecksum: UDP packet from %xip without CRC dropped\n",
643-
FreeRTOS_ntohl( pxIPPacket->xIPHeader.ulSourceIPAddress ) ) );
643+
( unsigned ) FreeRTOS_ntohl( pxIPPacket->xIPHeader.ulSourceIPAddress ) ) );
644644
xCount++;
645645
}
646646
}
@@ -1050,7 +1050,7 @@ uint16_t usGenerateChecksum( uint16_t usSum,
10501050
else if( ( uxMinLastSize * ipMONITOR_PERCENTAGE_90 ) > ( uxMinSize * ipMONITOR_PERCENTAGE_100 ) )
10511051
{
10521052
uxMinLastSize = uxMinSize;
1053-
FreeRTOS_printf( ( "Heap: current %lu lowest %lu\n", xPortGetFreeHeapSize(), uxMinSize ) );
1053+
FreeRTOS_printf( ( "Heap: current %u lowest %u\n", xPortGetFreeHeapSize(), uxMinSize ) );
10541054
}
10551055
else
10561056
{

source/portable/NetworkInterface/Zynq/x_emacpsif_physpeed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static int detect_phy( XEmacPs * xemacpsp )
178178
{
179179
XEmacPs_PhyRead( xemacpsp, phy_addr, IEEE_PHYSID2_OFFSET, &id_upper );
180180
id = ( ( ( uint32_t ) id_upper ) << 16 ) | ( id_lower & 0xFFF0 );
181-
FreeRTOS_printf( ( "XEmacPs detect_phy: %04lX at address %d.\n", id, phy_addr ) );
181+
FreeRTOS_printf( ( "XEmacPs detect_phy: %04lX at address %u.\n", id, ( unsigned ) phy_addr ) );
182182
phy_detected = phy_addr;
183183
return phy_addr;
184184
}

0 commit comments

Comments
 (0)