[PATCH rtems-lwip 06/10] FIX: printf format spec compiler warning due to uintptr having 64bits on 64bit machines

berndmoessner80 at gmail.com berndmoessner80 at gmail.com
Thu Jan 4 00:04:35 UTC 2024


From: Bernd Moessner <berndmoessner80 at gmail.com>

---
 .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c
index 9594ff5..98e7a8e 100644
--- a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c
+++ b/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c
@@ -184,8 +184,9 @@ xemac_add(struct netif *netif,
 #endif
 #endif
 			default:
-				xil_printf("unable to determine type of EMAC with baseaddress 0x%08x\r\n",
+				xil_printf("unable to determine type of EMAC with baseaddress %" PRIXPTR,
 						mac_baseaddr);
+				xil_printf("\r\b");
 				return NULL;
 	}
 }
-- 
2.34.1



More information about the devel mailing list