diff options
Diffstat (limited to 'private/ntos/miniport/always/debug.h')
-rw-r--r-- | private/ntos/miniport/always/debug.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/private/ntos/miniport/always/debug.h b/private/ntos/miniport/always/debug.h new file mode 100644 index 000000000..b1be949e3 --- /dev/null +++ b/private/ntos/miniport/always/debug.h @@ -0,0 +1,25 @@ +#ifndef __DEBUG_H__ +#define __DEBUG_H__ + +#if defined(DEBUG_ON) + + #if !defined(DEBUG_TOKEN) + #define DEBUG_TOKEN debug + #endif + extern int DEBUG_TOKEN; + + #define TRACE(l,s) if (l <= DEBUG_TOKEN) ScsiDebugPrint s + #define DmsPause(l, p) if (l <= DEBUG_TOKEN) msPause(p) + #define BreakPoint(HA) EnvBreakPoint(HA) + #define DEBUG(l,e) if (l <= DEBUG_TOKEN) ScsiDebugPrint e + +#else + + #define TRACE(l,s) + #define DmsPause(l,p) + #define BreakPoint(HA) + #define DEBUG(l,e) + +#endif + +#endif /* __debug_h__ */ |