Fix release build
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-12-28 23:28:49 +01:00
parent dec021b1ec
commit e6a7918bac
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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;