From: Dmitry V. Levin Date: Sat, 26 Nov 2016 20:51:52 +0000 (+0000) Subject: Enhance error diagnostics of exit/exit_group decoder X-Git-Tag: v4.15~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88017cbae8bb8b4f421c4e89a7290e035e2144cd;p=strace Enhance error diagnostics of exit/exit_group decoder * exit.c (SYS_FUNC(exit)): Print the name of syscall that has returned. --- diff --git a/exit.c b/exit.c index aec01da1..b10f90c2 100644 --- a/exit.c +++ b/exit.c @@ -3,7 +3,7 @@ SYS_FUNC(exit) { if (exiting(tcp)) { - error_msg("_exit returned!"); + error_msg("%s returned!", tcp->s_ent->sys_name); return -1; } /* special case: we stop tracing this process, finish line now */