mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
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:
@@ -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)) {\
|
||||
|
Reference in New Issue
Block a user