revert between 56095 -> 55830 in arch
[AROS.git] / rom / usb / pciusb / debug.h
blob719c2645d986eeb7154b66e30fcdb3d531a0a4be
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 <aros/debug.h>
12 #include <proto/debug.h>
14 // DEBUG 0 should equal undefined DEBUG
15 #ifdef DEBUG
16 #if DEBUG == 0
17 #undef DEBUG
18 #endif
19 #endif
21 #ifdef DEBUG
22 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
23 { KPrintF("%s/%lu: ", __FUNCTION__, __LINE__); KPrintF x;} } while (0)
24 #define DB(x) x
25 void dumpmem_pciusb(void *mem, unsigned long int len);
26 #else /* !DEBUG */
28 #define KPRINTF(l, x) ((void) 0)
29 #define DB(x)
31 #endif /* DEBUG */