HV: assert: use signed int for __LINE__

GCC preprocessor expands __LINE__ to signed decimal integers. Keep the prototype
of __assert aligned with this.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao
2018-07-09 21:20:50 +08:00
committed by lijinxia
parent d0c61ce424
commit 0f777d3fe1
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
#define ASSERT_H
#ifdef HV_DEBUG
void __assert(uint32_t line, const char *file, const char *txt);
void __assert(int32_t line, const char *file, const char *txt);
#define ASSERT(x, ...) \
if (!(x)) {\