aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/debug.h
blob: b3b1702600d7bdc2cfb6d38b873020282fd0fbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _DEBUG_H
#define _DEBUG_H

#define DEBUG

#define DRLL		0x0001
#define DCC		0x0002
#define DMM		0x0004
#define DRR		0x0008
#define DRSL		0x0010
#define DNM		0x0020
#define DMI		0x1000

#ifdef DEBUG
#define DEBUGP(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, fmt, ## args)
#else
#define DEBUGP(xss, fmt, args...) 
#endif

void debugp(unsigned int subsys, char *file, int line, const char *format, ...);
void parse_category_mask(const char* mask);

#endif /* _DEBUG_H */