X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Flogdebug.h;h=c2faf7d23fb97040ea1ad91097efd5678c451130;hb=ad1ca231acba6e83b2c3f199a6465f4e29282b08;hp=13d3b82bdb5b2f918140187c36b5dc33b777b5fb;hpb=510431249326d5a44fc502ed5cf798b79a442ce8;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/logdebug.h b/KernelLand/Kernel/include/logdebug.h index 13d3b82b..c2faf7d2 100644 --- a/KernelLand/Kernel/include/logdebug.h +++ b/KernelLand/Kernel/include/logdebug.h @@ -35,6 +35,7 @@ extern void Debug_KernelPanic(void); //!< Initiate a kernel panic extern void Panic(const char *Msg, ...); //!< Print a panic message (initiates a kernel panic) extern void Warning(const char *Msg, ...); //!< Print a warning message extern void LogF(const char *Fmt, ...); //!< Print a log message without a trailing newline +extern void LogFV(const char *Fmt, va_list Args); //!< va_list non-newline log message extern void Log(const char *Fmt, ...); //!< Print a log message extern void Debug(const char *Fmt, ...); //!< Print a debug message (doesn't go to KTerm) extern void LogV(const char *Fmt, va_list Args); //!< va_list Log message @@ -56,7 +57,7 @@ extern void Debug_HexDump(const char *Header, const void *Data, size_t Length); # define LEAVE_RET(_t,_v...) return (_v) # define LEAVE_RET0() return #endif -#if SANITY +#if !DISABLE_ASSERTS # define ASSERT(expr) do{if(!(expr))Panic("%s:%i - %s: Assertion '"#expr"' failed",__FILE__,__LINE__,(char*)__func__);}while(0) #else # define ASSERT(expr)