Use more generic name for this macro use pointer used behind it will point to kernel debugger after it gets initialized

This commit is contained in:
2023-02-07 19:37:44 +01:00
parent 67768ae7a3
commit 75c519a70c
8 changed files with 62 additions and 62 deletions

View File

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