/[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.2 by adamdunkels, Wed Oct 23 20:20:29 2002 UTC revision 1.3 by adamdunkels, Sun Nov 3 13:08:23 2002 UTC
# Line 32  Line 32 
32  #ifndef __LWIP_DEBUG_H__  #ifndef __LWIP_DEBUG_H__
33  #define __LWIP_DEBUG_H__  #define __LWIP_DEBUG_H__
34    
35    #include "lwipopts.h"
36    
37  #ifdef LWIP_DEBUG  #ifdef LWIP_DEBUG
38    
39  #define ASSERT(x,y) if(!(y)) {printf("Assertion \"%s\" failed at line %d in %s\n", \  #define ASSERT(x,y) if(!(y)) {printf("Assertion \"%s\" failed at line %d in %s\n", \
# Line 40  Line 42 
42  /* These defines control the amount of debugging output: */  /* These defines control the amount of debugging output: */
43  #define MEM_TRACKING  #define MEM_TRACKING
44    
45  #define DEMO_DEBUG       1  #ifndef DEMO_DEBUG
46    #define DEMO_DEBUG       0
47  #define ETHARP_DEBUG     1  #endif
48    
49    #ifndef ETHARP_DEGUG
50    #define ETHARP_DEBUG     0
51    #endif
52    
53    #ifndef NETIF_DEBUG
54  #define NETIF_DEBUG      0  #define NETIF_DEBUG      0
55    #endif
56    
57    #ifndef PBUF_DEBUG
58  #define PBUF_DEBUG       0  #define PBUF_DEBUG       0
59    #endif
60    
61    #ifndef DELIF_DEBUG
62  #define DELIF_DEBUG      0  #define DELIF_DEBUG      0
63    #endif
64    
65    #ifndef DROPIF_DEBUG
66  #define DROPIF_DEBUG     0  #define DROPIF_DEBUG     0
67    #endif
68    
69    #ifndef TUNIF_DEBUG
70  #define TUNIF_DEBUG      0  #define TUNIF_DEBUG      0
71    #endif
72    
73    #ifndef UNIXIF_DEBUG
74  #define UNIXIF_DEBUG     0  #define UNIXIF_DEBUG     0
75  #define TAPIF_DEBUG      1  #endif
76    
77    #ifndef TAPIF_DEBUG
78    #define TAPIF_DEBUG      0
79    #endif
80    
81    #ifndef SIO_FIFO_DEBUG
82  #define SIO_FIFO_DEBUG   0  #define SIO_FIFO_DEBUG   0
83    #endif
84    
85    #ifndef PPP_DEBUG
86  #define PPP_DEBUG        0  #define PPP_DEBUG        0
87    #endif
88    
89    #ifndef API_LIB_DEBUG
90  #define API_LIB_DEBUG    0  #define API_LIB_DEBUG    0
91    #endif
92    
93    #ifndef API_MSG_DEBUG
94  #define API_MSG_DEBUG    0  #define API_MSG_DEBUG    0
95  #define SOCKETS_DEBUG    1  #endif
96    
97    #ifndef SOCKETS_DEBUG
98    #define SOCKETS_DEBUG    0
99    #endif
100    
101    #ifndef ICMP_DEBUG
102  #define ICMP_DEBUG       0  #define ICMP_DEBUG       0
103    #endif
104    
105    #ifndef INET_DEBUG
106  #define INET_DEBUG       0  #define INET_DEBUG       0
107  #define IP_DEBUG         1  #endif
108  #define IP_REASS_DEBUG   1  
109    #ifndef IP_DEBUG
110    #define IP_DEBUG         0
111    #endif
112    
113    #ifndef IP_REASS_DEBUG
114    #define IP_REASS_DEBUG   0
115    #endif
116    
117    #ifndef MEM_DEBUG
118  #define MEM_DEBUG        0  #define MEM_DEBUG        0
119    #endif
120    
121    #ifndef MEMP_DEBUG
122  #define MEMP_DEBUG       0  #define MEMP_DEBUG       0
123    #endif
124    
125    #ifndef SYS_DEBUG
126  #define SYS_DEBUG        0  #define SYS_DEBUG        0
127    #endif
128    
129    #ifndef TCP_DEBUG
130  #define TCP_DEBUG        0  #define TCP_DEBUG        0
131    #endif
132    
133    #ifndef TCP_INPUT_DEBUG
134  #define TCP_INPUT_DEBUG  0  #define TCP_INPUT_DEBUG  0
135    #endif
136    
137    #ifndef TCP_FR_DEBUG
138  #define TCP_FR_DEBUG     0  #define TCP_FR_DEBUG     0
139    #endif
140    
141    #ifndef TCP_RTO_DEBUG
142  #define TCP_RTO_DEBUG    0  #define TCP_RTO_DEBUG    0
143    #endif
144    
145    #ifndef TCP_REXMIT_DEBUG
146  #define TCP_REXMIT_DEBUG 0  #define TCP_REXMIT_DEBUG 0
147    #endif
148    
149    #ifndef TCP_CWND_DEBUG
150  #define TCP_CWND_DEBUG   0  #define TCP_CWND_DEBUG   0
151    #endif
152    
153    #ifndef TCP_WND_DEBUG
154  #define TCP_WND_DEBUG    0  #define TCP_WND_DEBUG    0
155    #endif
156    
157    #ifndef TCP_OUTPUT_DEBUG
158  #define TCP_OUTPUT_DEBUG 0  #define TCP_OUTPUT_DEBUG 0
159    #endif
160    
161    #ifndef TCP_RST_DEBUG
162  #define TCP_RST_DEBUG    0  #define TCP_RST_DEBUG    0
163    #endif
164    
165    #ifndef TCP_QLEN_DEBUG
166  #define TCP_QLEN_DEBUG   0  #define TCP_QLEN_DEBUG   0
167    #endif
168    
169    #ifndef UDP_DEBUG
170  #define UDP_DEBUG        0  #define UDP_DEBUG        0
171    #endif
172    
173    #ifndef TCPIP_DEBUG
174  #define TCPIP_DEBUG      0  #define TCPIP_DEBUG      0
175    #endif
176    
177    #ifndef TCPDUMP_DEBUG
178  #define TCPDUMP_DEBUG    0  #define TCPDUMP_DEBUG    0
179  #define DHCP_DEBUG       1  #endif
180    
181    #ifndef DHCP_DEBUG
182    #define DHCP_DEBUG       0
183    #endif
184    
185  #include <stdio.h>  #include <stdio.h>
186  #define DEBUGF(debug, x) do { if(debug){ printf x; } } while(0)  #define DEBUGF(debug, x) do { if(debug){ printf x; } } while(0)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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