12#define NORMAL_MASK 0x000000FF
13#define SPECIAL_MASK 0xFFFFFF00
14#define MIN_TRACE 0x00000001
15#define MID_TRACE 0x00000002
16#define MAX_TRACE 0x00000003
18#define DEBUG_MEMORY 0x00000100
19#define DEBUG_ULTRA 0xFFFFFFFF
27#define NDIS_DbgPrint(_t_, _x_) \
28 if ((_t_ > NORMAL_MASK) \
29 ? (DebugTraceLevel & _t_) > NORMAL_MASK \
30 : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
31 DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
37#define NDIS_DbgPrint(_t_, _x_) \
38 if ((_t_ > NORMAL_MASK) \
39 ? (DebugTraceLevel & _t_) > NORMAL_MASK \
40 : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
41 DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
48#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
49#define ASSERT_IRQL_EQUAL(x) ASSERT(KeGetCurrentIrql() == (x))
53#define NDIS_DbgPrint(_t_, _x_)
56#define ASSERT_IRQL_EQUAL(x)
62#define assert(x) ASSERT(x)
63#define assert_irql(x) ASSERT_IRQL(x)
68#define UNIMPLEMENTED \
69 NDIS_DbgPrint(MIN_TRACE, ("The function at %s:%d is unimplemented, \
70 but come back another day.\n", __FILE__, __LINE__));
74#define UNIMPLEMENTED \
75 NDIS_DbgPrint(MIN_TRACE, ("%s at %s:%d is unimplemented, \
76 but come back another day.\n", __FUNCTION__, __FILE__, __LINE__));
82 do { NDIS_DbgPrint(MIN_TRACE, ("%s:%d\n", __FILE__, __LINE__)); } while(0);