3 #if !defined(_KSDEBUG_)
8 #define QQUOTE(y) QUOTE(y)
9 #define REMIND(str) __FILE__ "(" QQUOTE(__LINE__) ") : " str
12 #if defined(__cplusplus)
18 #if defined(IRPMJFUNCDESC)
19 static const PCHAR IrpMjFuncDesc
[] = {
21 "IRP_MJ_CREATE_NAMED_PIPE",
25 "IRP_MJ_QUERY_INFORMATION",
26 "IRP_MJ_SET_INFORMATION",
29 "IRP_MJ_FLUSH_BUFFERS",
30 "IRP_MJ_QUERY_VOLUME_INFORMATION",
31 "IRP_MJ_SET_VOLUME_INFORMATION",
32 "IRP_MJ_DIRECTORY_CONTROL",
33 "IRP_MJ_FILE_SYSTEM_CONTROL",
34 "IRP_MJ_DEVICE_CONTROL",
35 "IRP_MJ_INTERNAL_DEVICE_CONTROL",
37 "IRP_MJ_LOCK_CONTROL",
39 "IRP_MJ_CREATE_MAILSLOT",
40 "IRP_MJ_QUERY_SECURITY",
41 "IRP_MJ_SET_SECURITY",
45 #endif /* defined(IRPMJFUNCDESC) */
51 #define DEBUGLVL_BLAB TRACE_LEVEL_VERBOSE
52 #define DEBUGLVL_VERBOSE TRACE_LEVEL_VERBOSE
53 #define DEBUGLVL_TERSE TRACE_LEVEL_INFORMATION
54 #define DEBUGLVL_ERROR TRACE_LEVEL_ERROR
56 #define DEBUGLVL_WARNING TRACE_LEVEL_WARNING
57 #define DEBUGLVL_INFO TRACE_LEVEL_INFORMATION
60 #if !defined( DEBUG_LEVEL )
61 #if defined( DEBUG_VARIABLE )
62 #if defined( KSDEBUG_INIT )
63 ULONG DEBUG_VARIABLE
= DEBUGLVL_TERSE
;
65 extern ULONG DEBUG_VARIABLE
;
68 #define DEBUG_VARIABLE DEBUGLVL_TERSE
71 #if defined( DEBUG_VARIABLE )
72 #if defined( KSDEBUG_INIT )
73 ULONG DEBUG_VARIABLE
= DEBUG_LEVEL
;
75 extern ULONG DEBUG_VARIABLE
;
78 #define DEBUG_VARIABLE DEBUG_LEVEL
82 #if (NTDDI_VERSION >= NTDDI_WINXP)
83 #define _DbgPrintFEx(component, lvl, strings) { \
84 if ((lvl) <= DEBUG_VARIABLE) { \
85 DbgPrintEx(component, lvl, STR_MODULENAME); \
86 DbgPrintEx(component, lvl, strings); \
87 DbgPrintEx(component, lvl, "\n"); \
88 if ((lvl) == DEBUGLVL_ERROR) { \
93 #endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
95 #define _DbgPrintF(lvl, strings) { \
96 if (((lvl)==DEBUG_VARIABLE) || (lvl < DEBUG_VARIABLE)) { \
97 DbgPrint(STR_MODULENAME); \
100 if ((lvl) == DEBUGLVL_ERROR) { \
108 #define _DbgPrintF(lvl, strings)
110 #if (NTDDI_VERSION >= NTDDI_WINXP)
111 #define _DbgPrintFEx(component, lvl, strings)
116 #endif /* defined(_NTDDK_) */
118 #if defined(__cplusplus)
122 #endif /* _KSDEBUG_ */