mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: fix 'Recursion in procedure calls found'
Here is how the recursion might happen: when there is something wrong | sbuf_put -> memcpy_s -> pr_err -> do_logmsg | | ----------------------------------- Replace 'pr_err' with 'ASSERT' in 'memcpy_s' to break this kind of recursion. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
@@ -12,7 +12,6 @@ void __assert(uint32_t line, const char *file, const char *txt);
|
||||
|
||||
#define ASSERT(x, ...) \
|
||||
if (!(x)) {\
|
||||
pr_fatal(__VA_ARGS__);\
|
||||
__assert(__LINE__, __FILE__, "fatal error");\
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user