Thanks. That helps:)

On Mon, Jun 10, 2024, 11:28 PM Billy Bednar via lwip-users <
lwip-users@nongnu.org> wrote:

> I'm developing an application in Vitis 2022.2 that uses lwip211_v1_8 and
>> targets a Zynq US MPSOC+.
>>
>> I turned on lwip_debug and I started getting an error telling me that
>> NETIF_DEBUGF is not defined. I couldn't find NETIF_DEBUGF anywhere so I
>> renamed NETIF_DEBUG in lwipopts.h to NETIF_DEBUGF. I suspect this is the
>> wrong thing to do. Any suggestions for the right thing to do? Do I need to
>> write "#define  NETIF_DEBUGF LWIP_DBG_ON" in one of the files I've written
>> to properly resolve this error?
>>
>
> That code is part of Xilinx's port, not lwIP proper. The names of the
> standard lwIP options controlling debug all end in _DEBUG. It appears that
> NETIF_DEBUGF originated as a typo in a couple places
> <https://github.com/dkargus/LwIP_mod/blob/cb5d20a96cdb2c9ad9b8e0a3bfe6503231ad9d05/lwip213_v1_1/src/contrib/ports/xilinx/netif/xaxiemacif_hw.c#L100-L107>
> in their netif implementation and was copied into their sys_arch without
> being modified to reflect the new location. Within their netif code,
> NETIF_DEBUGF should be NETIF_DEBUG. Within their sys_arch, NETIF_DEBUGF
> should be SYS_DEBUG. If you don't want to modify their code, you can just
> define it to LWIP_DBG_ON or  LWIP_DBG_OFF.
>
> -Billy
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to