35 #ifndef _K_DEBUG_PRINT_H 36 #define _K_DEBUG_PRINT_H 49 #define DEBUG_ENTRY(level) _LogOutEntry(level, __FUNCTION__) 50 #define DEBUG_EXIT_STATUS(level, status) _LogOutExitValue(level, __FUNCTION__, status) 51 #define DPrintFunctionName(Level) _LogOutString(Level, __FUNCTION__) 54 #ifndef WPP_EVENT_TRACING 56 #define WPP_INIT_TRACING(a,b) 57 #define WPP_CLEANUP(a) 59 #define MAX_DEBUG_LEVEL 1 61 #define DPrintf(Level, Fmt) { if ( (Level) > MAX_DEBUG_LEVEL || (Level) > nDebugLevel || !bDebugPrint ) {} else { pDebugPrint Fmt; } } 63 #define DPrintfBypass(Level, Fmt) DPrintf(Level, Fmt) 70 #define DPrintfAnyway(Level, Fmt) \ 72 if (bDebugPrint && (Level) <= nDebugLevel) \ 79 #define WPP_CONTROL_GUIDS \ 80 WPP_DEFINE_CONTROL_GUID(NetKVM, (05F77115,E57E,49bf,90DF,C0E6B6478E5F), \ 81 WPP_DEFINE_BIT(TRACE_DEBUG)\ 85 #define WPP_LEVEL_ENABLED(LEVEL) \ 86 (nDebugLevel >= (LEVEL)) 88 #define WPP_LEVEL_LOGGER(LEVEL) (WPP_CONTROL(WPP_BIT_ ## TRACE_DEBUG).Logger), 92 #define DPrintfBypass(Level, Fmt) DPrintfAnyway(Level, Fmt) 94 #define DPrintfBypass(Level, Fmt) 97 #define WPP_PRIVATE_ENABLE_CALLBACK WppEnableCallback void _LogOutString(int level, const char *s)
DEBUGPRINTFUNC pDebugPrint
void _LogOutEntry(int level, const char *s)
defined(WPP_EVENT_TRACING) || defined(WPP_USE_BYPASS)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
void _LogOutExitValue(int level, const char *s, ULONG value)
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
_Must_inspect_result_ _In_ ULONG Flags
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
VOID WppEnableCallback(__in LPCGUID Guid, __in __int64 Logger, __in BOOLEAN Enable, __in ULONG Flags, __in UCHAR Level)
void(* DEBUGPRINTFUNC)(const char *fmt,...)