Kernel - Fix ASSERTRV macro supplying too many arguments to Warning
authorJohn Hodge <[email protected]>
Mon, 3 Feb 2014 05:25:12 +0000 (13:25 +0800)
committerJohn Hodge <[email protected]>
Mon, 3 Feb 2014 05:25:12 +0000 (13:25 +0800)
KernelLand/Kernel/include/logdebug.h

index 987a6a8..0710c6b 100644 (file)
@@ -64,7 +64,7 @@ extern void   Debug_HexDump(const char *Header, const void *Data, size_t Length);
 #endif
 #if !DISABLE_ASSERTS
 # define ASSERTV(expr,msg,args...) do{if(!(expr))Panic("%s:%i - %s: Assertion '"#expr"' failed"msg,__FILE__,__LINE__,(char*)__func__,##args);}while(0)
-# define ASSERTRV(expr,rv,msg,args...) do{if(!(expr)){Warning("%s:%i: Assertion '"#expr"' failed"msg,__FILE__,__LINE__,(char*)__func__ , ##args);return rv;}}while(0)
+# define ASSERTRV(expr,rv,msg,args...) do{if(!(expr)){Warning("%s:%i - %s: Assertion '"#expr"' failed"msg,__FILE__,__LINE__,(char*)__func__ , ##args);return rv;}}while(0)
 #else
 # define ASSERTV(expr)
 # define ASSERTRV(expr)

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