Forgotten changes that should have been part of the r45368 64-bit fix.
[AROS.git] / rom / usb / pciusb / debug.h
blob31613c84d19c03212582ec72d7474a722a00b621
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 #ifdef AROS_USB30_CODE
12 #undef DEBUG
13 #undef DB_LEVEL
14 #define DEBUG 1
15 #define DB_LEVEL 1000
16 #endif
18 #include <proto/debug.h>
20 // DEBUG 0 should equal undefined DEBUG
21 #ifdef DEBUG
22 #if DEBUG == 0
23 #undef DEBUG
24 #endif
25 #endif
27 #ifdef DEBUG
28 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
29 { KPrintF("%s/%lu: ", __FUNCTION__, __LINE__); KPrintF x;} } while (0)
30 #define DB(x) x
31 void dumpmem_pciusb(void *mem, unsigned long int len);
32 #else /* !DEBUG */
34 #define KPRINTF(l, x) ((void) 0)
35 #define DB(x)
37 #endif /* DEBUG */