X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-redboot.git;a=blobdiff_plain;f=packages%2Fnet%2Flwip_tcpip%2Fv2_0%2Finclude%2Flwip%2Fdebug.h;h=8f63a7b625e736543a98961a9a60f3ec4367ea04;hp=147e87d09f3db2adc3f995c9ce6eff89cdd18801;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hpb=29ac1edaf5f12d706179ec87816ee1506ba4c9a1 diff --git a/packages/net/lwip_tcpip/v2_0/include/lwip/debug.h b/packages/net/lwip_tcpip/v2_0/include/lwip/debug.h index 147e87d0..8f63a7b6 100644 --- a/packages/net/lwip_tcpip/v2_0/include/lwip/debug.h +++ b/packages/net/lwip_tcpip/v2_0/include/lwip/debug.h @@ -71,7 +71,7 @@ /** print debug message only if debug message type is enabled... * AND is of correct type AND is at least DBG_LEVEL */ -# define LWIP_DEBUGF(debug,x) do { if (((debug) & DBG_ON) && ((debug) & DBG_TYPES_ON) && (((debug) & DBG_MASK_LEVEL) >= DBG_MIN_LEVEL)) { LWIP_PLATFORM_DIAG(x); if ((debug) & DBG_HALT) while(1); } } while(0) +# define LWIP_DEBUGF(debug,x) do { if (((debug) & DBG_ON) && ((debug) & DBG_TYPES_ON) && ((s16_t)((debug) & DBG_MASK_LEVEL) >= DBG_MIN_LEVEL)) { LWIP_PLATFORM_DIAG(x); if ((debug) & DBG_HALT) while(1); } } while(0) # define LWIP_ERROR(x) do { LWIP_PLATFORM_DIAG(x); } while(0) #else /* LWIP_DEBUG */ # define LWIP_DEBUGF(debug,x)