Go to the documentation of this file.
32 #ifndef __LWIP_DEBUG_H__
33 #define __LWIP_DEBUG_H__
43 #define LWIP_DBG_LEVEL_ALL 0x00
44 #define LWIP_DBG_LEVEL_OFF LWIP_DBG_LEVEL_ALL
45 #define LWIP_DBG_LEVEL_WARNING 0x01
46 #define LWIP_DBG_LEVEL_SERIOUS 0x02
47 #define LWIP_DBG_LEVEL_SEVERE 0x03
48 #define LWIP_DBG_MASK_LEVEL 0x03
51 #define LWIP_DBG_ON 0x80U
53 #define LWIP_DBG_OFF 0x00U
56 #define LWIP_DBG_TRACE 0x40U
58 #define LWIP_DBG_STATE 0x20U
60 #define LWIP_DBG_FRESH 0x10U
62 #define LWIP_DBG_HALT 0x08U
65 #define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \
66 LWIP_PLATFORM_ASSERT(message); } while(0)
68 #define LWIP_ASSERT(message, assertion)
73 #define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \
74 LWIP_PLATFORM_ASSERT(message); handler;}} while(0)
81 #define LWIP_DEBUGF(debug, message) do { \
83 ((debug) & LWIP_DBG_ON) && \
84 ((debug) & LWIP_DBG_TYPES_ON) && \
85 ((s16_t)((debug) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \
86 LWIP_PLATFORM_DIAG(message); \
87 if ((debug) & LWIP_DBG_HALT) { \
94 #define LWIP_DEBUGF(debug, message)