revert between 56095 -> 55830 in arch
[AROS.git] / rom / usb / pciusbhc / ohci / debug.h
blobbdecba5a97ca48f45475d35679ad3ef10a6159a7
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 10
7 #endif
9 #define DEBUG 0
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 */