Initial import of work-in-progress of Poseidon port.
[cake.git] / rom / usb / trident / debug.h
blob6d5cb840e9ff37ca02d290dbcf50a78fda9164b2
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__ */