Blame SOURCES/0020-Make-inline-message-on-failed-restart-attempt-more-v.patch

4d44fe
From 38a060e855568e2990affd5cd37aeda372f79c33 Mon Sep 17 00:00:00 2001
4d44fe
From: Eugene Syromyatnikov <evgsyr@gmail.com>
4d44fe
Date: Sun, 10 Feb 2019 19:49:46 +0100
4d44fe
Subject: [PATCH 20/27] Make inline message on failed restart attempt more
4d44fe
 verbose
4d44fe
4d44fe
Hopefully, now it is less confusing.
4d44fe
4d44fe
* strace.c (ptrace_restart): Provide intent and pid in the inline error
4d44fe
message.
4d44fe
4d44fe
References: https://bugzilla.redhat.com/show_bug.cgi?id=1662936
4d44fe
---
4d44fe
 strace.c | 3 ++-
4d44fe
 1 file changed, 2 insertions(+), 1 deletion(-)
4d44fe
4d44fe
diff --git a/strace.c b/strace.c
4d44fe
index 7fe6548..f2aa846 100644
4d44fe
--- a/strace.c
4d44fe
+++ b/strace.c
4d44fe
@@ -380,7 +380,8 @@ ptrace_restart(const unsigned int op, struct tcb *const tcp, unsigned int sig)
4d44fe
 	 * but before we tried to restart it. Log looks ugly.
4d44fe
 	 */
4d44fe
 	if (current_tcp && current_tcp->curcol != 0) {
4d44fe
-		tprintf(" <ptrace(%s):%s>\n", msg, strerror(err));
4d44fe
+		tprintf(" <Cannot restart pid %d with ptrace(%s): %s>\n",
4d44fe
+			tcp->pid, msg, strerror(err));
4d44fe
 		line_ended();
4d44fe
 	}
4d44fe
 	if (err == ESRCH)
4d44fe
-- 
4d44fe
2.1.4
4d44fe