Fix release build

This commit is contained in:
2022-12-28 23:28:49 +01:00
父節點 dec021b1ec
當前提交 e6a7918bac
共有 2 個文件被更改,包括 3 次插入1 次删除

查看文件

@@ -12,8 +12,10 @@
/* XTOS platform debugging macros */
#ifdef DBG
#define DEBUG 1
#define LDRPRINT(Format, ...) if(LdrPrint) LdrPrint(Format, __VA_ARGS__);
#else
#define DEBUG 0
#define LDRPRINT(Format, ...) ((VOID)NULL)
#endif

查看文件

@@ -24,7 +24,7 @@ VOID
KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
{
/* Check if debugging enabled and if boot loader provided routine for debug printing */
if(DBG && Parameters->LoaderInformation.DbgPrint)
if(DEBUG && Parameters->LoaderInformation.DbgPrint)
{
/* Use loader's provided DbgPrint() routine for early printing to serial console */
LdrPrint = Parameters->LoaderInformation.DbgPrint;