File 0934-erts-Fix-etp-stack-preamble.patch of Package erlang
From 372224b3733cdd5fe9dc125125e1b8cbc4999a94 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 14 Oct 2019 18:11:37 +0200
Subject: [PATCH 1/3] erts: Fix etp-stack-preamble
printf with %s not working well on core dump.
---
erts/etc/unix/etp-commands.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in
index cb88b02dbb..aa02a4c6ed 100644
--- a/erts/etc/unix/etp-commands.in
+++ b/erts/etc/unix/etp-commands.in
@@ -1457,7 +1457,7 @@ define etp-stack-preamble
set $etp_stack_end = ($arg0)->hend
if ($arg0)->state.counter & 0x8000
printf "%%%%%% WARNING: The process is currently running, so c_p->stop will not be correct\r\n"
- printf "%%%%%% Consider using %s-emu instead\r\n", $arg1
+ printf "%%%%%% Consider using -emu variant instead\r\n"
end
printf "%% Stacktrace (%u)\n", $etp_stack_end-$etp_stack_p
if ($arg0)->i != 0
--
2.16.4