KernelLand - Better node chaching code
[tpg/acess2.git] / KernelLand / Kernel / include / logdebug.h
index 13d3b82..c2faf7d 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au