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 <harinik@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
Harini Katakam 2015-10-09 17:35:32 +05:30 committed by Nava kishore Manne
parent c7705e5843
commit 151bb50243
3 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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__ */

View file

@ -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;
}