From: John Hodge Date: Mon, 25 Aug 2014 04:57:28 +0000 (+0800) Subject: Kernel/logdebug - Cast values in relation assert print (Avoids 64-bit values confusin... X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d43bb60e804616457ecbabe30f7790e5dc133a38;p=tpg%2Facess2.git Kernel/logdebug - Cast values in relation assert print (Avoids 64-bit values confusing print code) --- diff --git a/KernelLand/Kernel/include/logdebug.h b/KernelLand/Kernel/include/logdebug.h index 39bdba38..f13187e6 100644 --- a/KernelLand/Kernel/include/logdebug.h +++ b/KernelLand/Kernel/include/logdebug.h @@ -73,8 +73,8 @@ extern void Debug_HexDump(const char *Header, const void *Data, size_t Length); #define assert(expr) ASSERTV(expr, "") #define ASSERT(expr) ASSERTV(expr, "") #define ASSERTR(expr,rv) ASSERTRV(expr, rv, "") -#define ASSERTC(l,rel,r) ASSERTV ((l) rel (r), ": 0x%x"#rel"0x%x", l, r) -#define ASSERTCR(l,rel,r,rv) ASSERTRV((l) rel (r), rv, ": 0x%x"#rel"0x%x", l, r) +#define ASSERTC(l,rel,r) ASSERTV ((l) rel (r), ": 0x%x"#rel"0x%x", (Uint)l, (Uint)r) +#define ASSERTCR(l,rel,r,rv) ASSERTRV((l) rel (r), rv, ": 0x%x"#rel"0x%x", (Uint)l, (Uint)r) /** * \} */