Disabled debug for Poseidon by default.
[cake.git] / rom / usb / classes / hid / debug.h
blobe3b3707f4c86a99ec00111c61c0e48049d3c7bdb
1 #ifndef __DEBUG_H__
2 #define __DEBUG_H__
4 #define DB_LEVEL 1
6 //#define DEBUG 1
8 #include <aros/debug.h>
10 #ifdef DEBUG
11 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
12 { bug("%s:%s/%lu: ", __FILE__, __FUNCTION__, __LINE__); bug x;} } while (0)
13 #define DB(x) x
14 void dumpmem(void *mem, unsigned long int len);
15 #else /* !DEBUG */
17 #define KPRINTF(l, x) ((void) 0)
18 #define DB(x)
20 #endif /* DEBUG */
22 #endif /* __DEBUG_H__ */