Microchip® Advanced Software Framework

debug.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"

Macros

#define LWIP_ASSERT(message, assertion)
 
#define LWIP_DBG_FRESH   0x10U
 flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet More...
 
#define LWIP_DBG_HALT   0x08U
 flag for LWIP_DEBUGF to halt after printing this debug message More...
 
#define LWIP_DBG_LEVEL_ALL   0x00
 lower two bits indicate debug level More...
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */
 
#define LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_OFF   0x00U
 flag for LWIP_DEBUGF to disable that debug message More...
 
#define LWIP_DBG_ON   0x80U
 flag for LWIP_DEBUGF to enable that debug message More...
 
#define LWIP_DBG_STATE   0x20U
 flag for LWIP_DEBUGF indicating a state debug message (to follow module states) More...
 
#define LWIP_DBG_TRACE   0x40U
 flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) More...
 
#define LWIP_DEBUGF(debug, message)
 if "expression" isn't true, then print "message" and execute "handler" expression More...
 

#define LWIP_DBG_FRESH   0x10U

flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet

#define LWIP_DBG_HALT   0x08U

flag for LWIP_DEBUGF to halt after printing this debug message

#define LWIP_DBG_LEVEL_ALL   0x00

lower two bits indicate debug level

  • 0 all
  • 1 warning
  • 2 serious
  • 3 severe
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */
#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */
#define LWIP_DBG_LEVEL_SEVERE   0x03
#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */
#define LWIP_DBG_MASK_LEVEL   0x03
#define LWIP_DBG_OFF   0x00U

flag for LWIP_DEBUGF to disable that debug message

#define LWIP_DBG_ON   0x80U

flag for LWIP_DEBUGF to enable that debug message

#define LWIP_DBG_STATE   0x20U

flag for LWIP_DEBUGF indicating a state debug message (to follow module states)

Referenced by netif_set_gw(), netif_set_ipaddr(), netif_set_netmask(), tcp_write(), tcp_write_checks(), udp_bind(), and udp_connect().

#define LWIP_DEBUGF (   debug,
  message 
)

if "expression" isn't true, then print "message" and execute "handler" expression

Referenced by arp_timer(), etharp_arp_input(), etharp_find_entry(), etharp_free_entry(), etharp_output(), etharp_query(), etharp_raw(), etharp_request(), etharp_send_ip(), etharp_tmr(), etharp_update_arp_entry(), ethernet_input(), ethernetif_input(), icmp_input(), icmp_send_response(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), ip_frag(), ip_input(), ip_output(), ip_reass(), ip_reass_enqueue_new_datagram(), ip_reass_timer(), ip_reass_tmr(), ip_route(), ksz8851snl_low_level_init(), ksz8851snl_low_level_input(), ksz8851snl_low_level_output(), ksz8851snl_rx_populate_queue(), ksz8851snl_update(), mem_free(), mem_malloc(), mem_trim(), netif_add(), netif_find(), netif_remove(), netif_set_default(), netif_set_gw(), netif_set_ipaddr(), netif_set_netmask(), pbuf_alloc(), pbuf_alloced_custom(), pbuf_chain(), pbuf_copy(), pbuf_dechain(), pbuf_free(), pbuf_free_ooseq(), pbuf_header(), tcp_abandon(), tcp_alloc(), tcp_bind(), tcp_close(), tcp_connect(), tcp_create_segment(), tcp_enqueue_flags(), tcp_fasttmr(), tcp_input(), tcp_keepalive(), tcp_kill_prio(), tcp_kill_timewait(), tcp_listen_input(), tcp_output(), tcp_output_segment(), tcp_parseopt(), tcp_pcb_purge(), tcp_process(), tcp_process_refused_data(), tcp_receive(), tcp_recved(), tcp_rexmit_fast(), tcp_rst(), tcp_send_empty_ack(), tcp_slowtmr(), tcp_write(), tcp_write_checks(), tcp_zero_window_probe(), udp_bind(), udp_connect(), and udp_input().