windows-nt/Source/XPSP1/NT/net/nwlink/flt/debug.h
2020-09-26 16:20:57 +08:00

43 lines
962 B
C

/*******************************************************************/
/* 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