summaryrefslogtreecommitdiffstats
path: root/private/ntos/tdi/isn/flt/debug.h
blob: c69bf51a9729a9142aa4d63ca95818c085391538 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************/
/*	      Copyright(c)  1993 Microsoft Corporation		   */
/*******************************************************************/

//***
//
// Filename:	debug.h
//
// Description: Debug macros definitions
//
// Author:	Stefan Solomon (stefans)    October 4, 1993.
//
// Revision History:
//
//***

#ifndef _IPXFLT_DEBUG_
#define _IPXFLT_DEBUG_

#if DBG
extern ULONG DbgLevel;
#define DBG_IOCTLS		0x00000001
#define DBG_FWDIF		0x00000002
#define DBG_IFHASH		0x00000010
#define DBG_PKTCACHE	0x00000020
#define DBG_PKTLOGS		0x00000100
#define DBG_ERRORS		0x10000000

#define DEF_DBG_LEVEL	(DBG_IOCTLS|DBG_FWDIF|DBG_ERRORS|DBG_IFHASH)

#define IpxFltDbgPrint(LEVEL,ARGS)										\
	do {															    \
		if (DbgLevel & (LEVEL)) {										\
			DbgPrint ARGS;											    \
		}															    \
	} while (0)

#else
#define IpxFltDbgPrint(LEVEL,ARGS) do {NOTHING;} while (0)
#endif

#endif