ReactOS  0.4.15-dev-985-gd905dd5
kdebugprint.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_ENTRY(level)   _LogOutEntry(level, __FUNCTION__)
 
#define DEBUG_EXIT_STATUS(level, status)   _LogOutExitValue(level, __FUNCTION__, status)
 
#define DPrintFunctionName(Level)   _LogOutString(Level, __FUNCTION__)
 
#define WPP_INIT_TRACING(a, b)
 
#define WPP_CLEANUP(a)
 
#define MAX_DEBUG_LEVEL   1
 
#define DPrintf(Level, Fmt)   { if ( (Level) > MAX_DEBUG_LEVEL || (Level) > nDebugLevel || !bDebugPrint ) {} else { pDebugPrint Fmt; } }
 
#define DPrintfBypass(Level, Fmt)   DPrintf(Level, Fmt)
 

Typedefs

typedef void(* DEBUGPRINTFUNC) (const char *fmt,...)
 

Functions

void _LogOutEntry (int level, const char *s)
 defined(WPP_EVENT_TRACING) || defined(WPP_USE_BYPASS) More...
 
void _LogOutExitValue (int level, const char *s, ULONG value)
 
void _LogOutString (int level, const char *s)
 

Variables

int nDebugLevel
 
int bDebugPrint
 
DEBUGPRINTFUNC pDebugPrint
 

Macro Definition Documentation

◆ DEBUG_ENTRY

#define DEBUG_ENTRY (   level)    _LogOutEntry(level, __FUNCTION__)

Definition at line 49 of file kdebugprint.h.

◆ DEBUG_EXIT_STATUS

#define DEBUG_EXIT_STATUS (   level,
  status 
)    _LogOutExitValue(level, __FUNCTION__, status)

Definition at line 50 of file kdebugprint.h.

◆ DPrintf

#define DPrintf (   Level,
  Fmt 
)    { if ( (Level) > MAX_DEBUG_LEVEL || (Level) > nDebugLevel || !bDebugPrint ) {} else { pDebugPrint Fmt; } }

Definition at line 61 of file kdebugprint.h.

◆ DPrintfBypass

#define DPrintfBypass (   Level,
  Fmt 
)    DPrintf(Level, Fmt)

Definition at line 63 of file kdebugprint.h.

◆ DPrintFunctionName

#define DPrintFunctionName (   Level)    _LogOutString(Level, __FUNCTION__)

Definition at line 51 of file kdebugprint.h.

◆ MAX_DEBUG_LEVEL

#define MAX_DEBUG_LEVEL   1

Definition at line 59 of file kdebugprint.h.

◆ WPP_CLEANUP

#define WPP_CLEANUP (   a)

Definition at line 57 of file kdebugprint.h.

◆ WPP_INIT_TRACING

#define WPP_INIT_TRACING (   a,
  b 
)

Definition at line 56 of file kdebugprint.h.

Typedef Documentation

◆ DEBUGPRINTFUNC

typedef void(* DEBUGPRINTFUNC) (const char *fmt,...)

Definition at line 42 of file kdebugprint.h.

Function Documentation

◆ _LogOutEntry()

void _LogOutEntry ( int  level,
const char s 
)

defined(WPP_EVENT_TRACING) || defined(WPP_USE_BYPASS)

Definition at line 153 of file ParaNdis-Debug.c.

154 {
155  DPrintf(level, ("[%s]=>", s));
156 }
GLint level
Definition: gl.h:1546
#define DPrintf(Level, Fmt)
Definition: kdebugprint.h:61
GLdouble s
Definition: gl.h:2039

◆ _LogOutExitValue()

void _LogOutExitValue ( int  level,
const char s,
ULONG  value 
)

Definition at line 158 of file ParaNdis-Debug.c.

159 {
160  DPrintf(level, ("[%s]<=0x%X", s, value));
161 }
GLint level
Definition: gl.h:1546
#define DPrintf(Level, Fmt)
Definition: kdebugprint.h:61
GLdouble s
Definition: gl.h:2039

◆ _LogOutString()

void _LogOutString ( int  level,
const char s 
)

Definition at line 163 of file ParaNdis-Debug.c.

164 {
165  DPrintf(level, ("[%s]", s));
166 }
GLint level
Definition: gl.h:1546
#define DPrintf(Level, Fmt)
Definition: kdebugprint.h:61
GLdouble s
Definition: gl.h:2039

Referenced by DriverEntry().

Variable Documentation

◆ bDebugPrint

int bDebugPrint

Definition at line 41 of file ParaNdis-Debug.c.

Referenced by ReadNicConfiguration().

◆ nDebugLevel

int nDebugLevel

Definition at line 40 of file ParaNdis-Debug.c.

Referenced by ReadNicConfiguration(), and WppEnableCallback().

◆ pDebugPrint

DEBUGPRINTFUNC pDebugPrint

Definition at line 145 of file ParaNdis-Debug.c.