Delitter pciusb.device (old xHCI attempt)
[AROS.git] / rom / usb / pciusb / debug.h
blob3927a2bad57a93a772a59503a23c9b9cfd59c020
1 /* This file can be included multiple times with different DB_LEVEL */
2 #undef DB
3 #undef KPRINTF
5 #ifndef DB_LEVEL
6 #define DB_LEVEL 200
7 #endif
9 //#define DEBUG 1
11 #include <proto/debug.h>
13 // DEBUG 0 should equal undefined DEBUG
14 #ifdef DEBUG
15 #if DEBUG == 0
16 #undef DEBUG
17 #endif
18 #endif
20 #ifdef DEBUG
21 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
22 { KPrintF("%s/%lu: ", __FUNCTION__, __LINE__); KPrintF x;} } while (0)
23 #define DB(x) x
24 void dumpmem_pciusb(void *mem, unsigned long int len);
25 #else /* !DEBUG */
27 #define KPRINTF(l, x) ((void) 0)
28 #define DB(x)
30 #endif /* DEBUG */