mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
call stack errors made fatal and better explained.
This commit is contained in:
parent
b67ee5d4c5
commit
7b8c1337dd
@ -192,7 +192,11 @@ int fd_func_enter(struct call_stats *this_call)
|
||||
int fd_func_exit(struct call_stats *this_call)
|
||||
{
|
||||
if (current_call != this_call)
|
||||
WHYF("stack mismatch, exited through %s()",this_call->totals->name);
|
||||
FATALF("stack-trace corrupted: %s%s%s exited through %s()",
|
||||
current_call?" entered through ":"no entry information, but",
|
||||
current_call?current_call->totals->name:"",
|
||||
current_call?"(), but":"",
|
||||
this_call->totals->name);
|
||||
|
||||
time_ms_t now = gettime_ms();
|
||||
time_ms_t elapsed = now - this_call->enter_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user