From 151bb5024362db081a0e03e6388a6ca58c5d370c Mon Sep 17 00:00:00 2001 From: Harini Katakam Date: Fri, 9 Oct 2015 17:35:32 +0530 Subject: [PATCH] lwip: Use xil_printf instead of printf printf is used only in two places and it was requested to remove these as it will reduce the size of the library. Signed-off-by: Harini Katakam Acked-by: Anirudha Sarangi --- ThirdParty/sw_services/lwip141/src/ChangeLog | 1 + .../lwip141/src/contrib/ports/xilinx/include/arch/cc.h | 2 +- .../lwip141/src/contrib/ports/xilinx/netif/xadapter.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ThirdParty/sw_services/lwip141/src/ChangeLog b/ThirdParty/sw_services/lwip141/src/ChangeLog index a6d0fa30..122ecc81 100644 --- a/ThirdParty/sw_services/lwip141/src/ChangeLog +++ b/ThirdParty/sw_services/lwip141/src/ChangeLog @@ -4,6 +4,7 @@ Change Log for lwip * Created a new version lwip141_v1_3. * Made changes in xemacpsif_dma.c to add required barriers. * Remove repeated sysarch protect and unprotect calls. + * Replace printf with xil_printf. 2015-09-09 * Fix compilation issues with the non hier axi eth design 2015-09-04 diff --git a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/include/arch/cc.h b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/include/arch/cc.h index fb1a24c5..5a5d811e 100644 --- a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/include/arch/cc.h +++ b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/include/arch/cc.h @@ -95,6 +95,6 @@ typedef unsigned long mem_ptr_t; #define PACK_STRUCT_END #define LWIP_PLATFORM_ASSERT(x) -#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0) +#define LWIP_PLATFORM_DIAG(x) do { xil_printf x; } while(0) #endif /* __ARCH_CC_H__ */ diff --git a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c index 2eb79477..e0eed40f 100644 --- a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c +++ b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c @@ -176,7 +176,7 @@ xemac_add(struct netif *netif, #endif #endif default: - printf("unable to determine type of EMAC with baseaddress 0x%08x\r\n", + xil_printf("unable to determine type of EMAC with baseaddress 0x%08x\r\n", mac_baseaddr); return NULL; }