The Pedigree Project  0.1
Macros
modules/system/lwip/include/lwip/debug.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"
+ Include dependency graph for modules/system/lwip/include/lwip/debug.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL
 
#define LWIP_ASSERT(message, assertion)
 
#define LWIP_PLATFORM_ERROR(message)   LWIP_PLATFORM_ASSERT(message)
 
#define LWIP_ERROR(message, expression, handler)
 
#define LWIP_DEBUGF(debug, message)
 
Debug level (LWIP_DBG_MIN_LEVEL)
#define LWIP_DBG_LEVEL_ALL   0x00
 
#define LWIP_DBG_LEVEL_WARNING   0x01
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
Enable/disable debug messages completely (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_ON   0x80U
 
#define LWIP_DBG_OFF   0x00U
 
Debug message types (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_TRACE   0x40U
 
#define LWIP_DBG_STATE   0x20U
 
#define LWIP_DBG_FRESH   0x10U
 
#define LWIP_DBG_HALT   0x08U
 

Detailed Description

Debug messages infrastructure

Definition in file modules/system/lwip/include/lwip/debug.h.

Macro Definition Documentation

#define LWIP_ASSERT (   message,
  assertion 
)
Value:
do { if (!(assertion)) { \
LWIP_PLATFORM_ASSERT(message); }} while(0)

Definition at line 135 of file modules/system/lwip/include/lwip/debug.h.

#define LWIP_DEBUGF (   debug,
  message 
)

Enable debug message printing, but only if debug message type is enabled AND is of correct type AND is at least LWIP_DBG_LEVEL.

Definition at line 183 of file modules/system/lwip/include/lwip/debug.h.

Referenced by mem_free(), mem_malloc(), mem_trim(), memp_init(), netif_add(), netif_find(), netif_remove(), netif_set_default(), netif_set_link_down(), pbuf_alloc(), pbuf_chain(), pbuf_copy(), pbuf_dechain(), pbuf_free(), pbuf_realloc(), slipif_init(), and tcpip_inpkt().

#define LWIP_ERROR (   message,
  expression,
  handler 
)
Value:
do { if (!(expression)) { \
LWIP_PLATFORM_ERROR(message); handler;}} while(0)

Definition at line 154 of file modules/system/lwip/include/lwip/debug.h.