From: Eugene Syromyatnikov Date: Sun, 10 Feb 2019 18:49:46 +0000 (+0100) Subject: Make inline message on failed restart attempt more verbose X-Git-Tag: v5.0~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe64f96ac09bfc97b6554816a19ae1fe138f1cae;p=strace Make inline message on failed restart attempt more verbose Hopefully, now it is less confusing. * strace.c (ptrace_restart): Provide intent and pid in the inline error message. References: https://bugzilla.redhat.com/show_bug.cgi?id=1662936 --- diff --git a/strace.c b/strace.c index 6413297f..246eb0c8 100644 --- a/strace.c +++ b/strace.c @@ -382,7 +382,8 @@ ptrace_restart(const unsigned int op, struct tcb *const tcp, unsigned int sig) * but before we tried to restart it. Log looks ugly. */ if (current_tcp && current_tcp->curcol != 0) { - tprintf(" \n", msg, strerror(err)); + tprintf(" \n", + tcp->pid, msg, strerror(err)); line_ended(); } if (err == ESRCH)