]> granicus.if.org Git - strace/commitdiff
Make inline message on failed restart attempt more verbose
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 10 Feb 2019 18:49:46 +0000 (19:49 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 10 Feb 2019 21:04:41 +0000 (21:04 +0000)
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

strace.c

index 6413297ff3d2c7b7cd3f7f3b2d4d5e76831e3635..246eb0c8c0d4302b8aef37bd3ce0e45fb773f64a 100644 (file)
--- 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(" <ptrace(%s):%s>\n", msg, strerror(err));
+               tprintf(" <Cannot restart pid %d with ptrace(%s): %s>\n",
+                       tcp->pid, msg, strerror(err));
                line_ended();
        }
        if (err == ESRCH)