windows-nt/Source/XPSP1/NT/base/busdrv/pccard/memcard/debug.h
2020-09-26 16:20:57 +08:00

60 lines
1.5 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1991 - 1993 Microsoft Corporation
Module Name:
debug.h
Abstract:
Author:
Neil Sandlin (neilsa) 26-Apr-99
Environment:
Kernel mode only.
Notes:
--*/
#if DBG
//
// For checked kernels, define a macro to print out informational
// messages.
//
// MemCardDebug is normally 0. At compile-time or at run-time, it can be
// set to some bit patter for increasingly detailed messages.
//
// Big, nasty errors are noted with DBGP. Errors that might be
// recoverable are handled by the WARN bit. More information on
// unusual but possibly normal happenings are handled by the INFO bit.
// And finally, boring details such as routines entered and register
// dumps are handled by the SHOW bit.
//
#define MEMCARDDBGP ((ULONG)0x00000001)
#define MEMCARDWARN ((ULONG)0x00000002)
#define MEMCARDINFO ((ULONG)0x00000004)
#define MEMCARDSHOW ((ULONG)0x00000008)
#define MEMCARDIRPPATH ((ULONG)0x00000010)
#define MEMCARDFORMAT ((ULONG)0x00000020)
#define MEMCARDSTATUS ((ULONG)0x00000040)
#define MEMCARDPNP ((ULONG)0x00000080)
#define MEMCARDIOCTL ((ULONG)0x00000100)
#define MEMCARDRW ((ULONG)0x00000200)
extern ULONG MemCardDebugLevel;
#define MemCardDump(LEVEL,STRING) \
do { \
if (MemCardDebugLevel & (LEVEL)) { \
DbgPrint STRING; \
} \
} while (0)
#else
#define MemCardDump(LEVEL,STRING) do {NOTHING;} while (0)
#endif