/[lwip]/lwip/src/include/lwip/debug.h
ViewVC logotype

Diff of /lwip/src/include/lwip/debug.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by likewise, Tue Mar 11 14:16:27 2003 UTC revision 1.18 by davidhaas, Mon Mar 17 16:59:22 2003 UTC
# Line 40  Line 40 
40   * - 2 serious   * - 2 serious
41   * - 3 severe   * - 3 severe
42   */   */
43  #define DBG_MASK_LEVEL 3  
44    #define DBG_LEVEL_OFF     0
45    #define DBG_LEVEL_WARNING 1
46    #define DBG_LEVEL_SERIOUS 2
47    #define DBG_LEVEL_SEVERE  3
48    #define DBG_MASK_LEVEL    3
49    
50  /** flag for DEBUGF to enable the debug message */  /** flag for DEBUGF to enable the debug message */
51  #define DBG_ON  0x80U  #define DBG_ON  0x80U
# Line 62  Line 67 
67  /** print debug message only if debug message is enabled AND is of correct type  /** print debug message only if debug message is enabled AND is of correct type
68    * AND is at least DBG_LEVEL */    * AND is at least DBG_LEVEL */
69  #define 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 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)
70  #define LWIP_ERROR(x)    do { LWIP_PLATFORM_DIAG(x); } while(0)  #define LWIP_ERROR(x)    do { LWIP_PLATFORM_DIAG(x); } while(0)
71  #else /* LWIP_DEBUG */  #else /* LWIP_DEBUG */
72    
73  #define LWIP_ASSERT(x,y)  #define LWIP_ASSERT(x,y)
74  #define DEBUGF(debug, x)  #define DEBUGF(debug, x)
75  #define LWIP_ERROR(x)    #define LWIP_ERROR(x)  
76    
77    
78  #endif /* LWIP_DEBUG */  #endif /* LWIP_DEBUG */

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26