Use more generic name for this macro use pointer used behind it will point to kernel debugger after it gets initialized
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
@@ -11,19 +11,19 @@
|
||||
|
||||
|
||||
/* Debugging macros */
|
||||
#define CHECKPOINT LdrPrint(L"Checkpoint reached at %s:%d\n", __FILE__, __LINE__);
|
||||
#define DEPRECATED LdrPrint(L"Called deprecated routine '%s()' at %s:%d\n", \
|
||||
#define CHECKPOINT DebugPrint(L"Checkpoint reached at %s:%d\n", __FILE__, __LINE__);
|
||||
#define DEPRECATED DebugPrint(L"Called deprecated routine '%s()' at %s:%d\n", \
|
||||
__FUNCTION__, __FILE__, __LINE__);
|
||||
#define UNIMPLEMENTED LdrPrint(L"Called unimplemented routine '%s()' at %s:%d\n", \
|
||||
#define UNIMPLEMENTED DebugPrint(L"Called unimplemented routine '%s()' at %s:%d\n", \
|
||||
__FUNCTION__, __FILE__, __LINE__);
|
||||
|
||||
/* XTOS platform debugging macros */
|
||||
#ifdef DBG
|
||||
#define DEBUG 1
|
||||
#define LdrPrint(Format, ...) if(LdrDbgPrint) LdrDbgPrint(Format, __VA_ARGS__);
|
||||
#define DebugPrint(Format, ...) if(KeDbgPrint) KeDbgPrint(Format, __VA_ARGS__);
|
||||
#else
|
||||
#define DEBUG 0
|
||||
#define LdrPrint(Format, ...) ((VOID)NULL)
|
||||
#define DebugPrint(Format, ...) ((VOID)NULL)
|
||||
#endif
|
||||
|
||||
#endif /* __XTDK_XTDEBUG_H */
|
||||
|
Reference in New Issue
Block a user