[LTP] [PATCH 1/2] Fix formatting signal name in tst_strstatus()

Martin Doucha mdoucha@suse.cz
Thu Sep 24 16:42:45 CEST 2020


Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 lib/tst_status.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/tst_status.c b/lib/tst_status.c
index f1affeac5..9124faaa3 100644
--- a/lib/tst_status.c
+++ b/lib/tst_status.c
@@ -20,7 +20,8 @@ const char *exited(int status)
 
 const char *signaled(int status)
 {
-	snprintf(buf, sizeof(buf), "killed by %s", tst_strsig(status));
+	snprintf(buf, sizeof(buf), "killed by %s",
+		tst_strsig(WTERMSIG(status)));
 
 	return buf;
 }
-- 
2.28.0



More information about the ltp mailing list