2008-12-23 20:25:15 +00:00
|
|
|
#ifndef _DEBUG_H
|
|
|
|
#define _DEBUG_H
|
|
|
|
|
2008-12-26 00:06:02 +00:00
|
|
|
#define DEBUG
|
|
|
|
|
2008-12-23 20:25:15 +00:00
|
|
|
#define DRLL 0x0001
|
|
|
|
#define DCC 0x0002
|
|
|
|
#define DMM 0x0004
|
|
|
|
#define DRR 0x0008
|
2008-12-26 00:06:02 +00:00
|
|
|
#define DRSL 0x0010
|
|
|
|
#define DNM 0x0020
|
|
|
|
#define DMI 0x1000
|
2008-12-23 20:25:15 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
2008-12-26 10:20:07 +00:00
|
|
|
#define DEBUGP(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, fmt, ## args)
|
2008-12-23 20:25:15 +00:00
|
|
|
#else
|
2008-12-26 10:20:07 +00:00
|
|
|
#define DEBUGP(xss, fmt, args...)
|
2008-12-23 20:25:15 +00:00
|
|
|
#endif
|
|
|
|
|
2008-12-26 10:20:07 +00:00
|
|
|
void debugp(int subsys, char *file, int line, const char *format, ...);
|
|
|
|
|
2008-12-23 20:25:15 +00:00
|
|
|
#endif /* _DEBUG_H */
|