mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +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:
@@ -234,7 +234,7 @@ void __assert(uint32_t line, const char *file, const char *txt)
|
||||
uint64_t rsp = cpu_rsp_get();
|
||||
uint64_t rbp = cpu_rbp_get();
|
||||
|
||||
pr_fatal("Assertion failed in file %s,line %u : %s",
|
||||
printf("Assertion failed in file %s,line %u : %s",
|
||||
file, line, txt);
|
||||
show_host_call_trace(rsp, rbp, pcpu_id);
|
||||
dump_guest_context(pcpu_id);
|
||||
|
||||
Reference in New Issue
Block a user