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

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