cosmetics
[tomato.git] / release / src / router / dhcpv6 / debug.h
blob6cf3858d385f78f760d8cee158a738b0123a1ce8
1 #ifndef MY_DEBUG_H_
2 #define MY_DEBUG_H_
4 #ifndef MAX_DEBUG_LEVEL
5 # define MAX_DEBUG_LEVEL LOG_NOTICE
6 #endif
8 /* First include stdio.h, which may contain the prototype for the external dprintf.
9 * We do not want that. We redefine dprintf to our local implementation. */
10 #include <stdio.h>
11 #define dprintf(level, args...) \
12 ( { if ((level) <= MAX_DEBUG_LEVEL) my_dprintf((level), args); } )
14 #ifndef __P
15 # define __P(x) x
16 #endif
17 extern void my_dprintf __P((int, const char *, const char *, ...));
19 #endif /* MY_DEBUG_H_ */