File 1763-ssh-enhance-event-processing-in-ssh_test_lib.patch of Package erlang
From 72857c2b0ebf4ccbee4f4a405e28670cb59d3cf5 Mon Sep 17 00:00:00 2001
From: Jakub Witczak <kuba@erlang.org>
Date: Thu, 25 Sep 2025 17:34:45 +0200
Subject: [PATCH 3/5] ssh: enhance event processing in ssh_test_lib
---
lib/ssh/test/ssh_test_lib.erl | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl
index 7cba0dc186..4dfcc3fe87 100644
--- a/lib/ssh/test/ssh_test_lib.erl
+++ b/lib/ssh/test/ssh_test_lib.erl
@@ -1443,6 +1443,21 @@ process_event(#{msg := {report,
io_lib:format("[~44s] ~6s ~30s ~150s~n",
[io_lib:format("~p", [E]) ||
E <- [Pid, Level, Label]] ++ [io_lib:format(Format, Args)]);
+process_event(#{msg := {Format, Args},
+ meta := #{pid := Pid},
+ level := Level}) when is_list(Format), is_list(Args)->
+ io_lib:format("[~44s] ~6s~n~s~n",
+ [io_lib:format("~p", [E]) ||
+ E <- [Pid, Level]] ++ [io_lib:format(Format, Args)]);
+process_event(#{msg := {report,
+ #{label := Label,
+ reason := Reason,
+ process_label := ProcessLabel}},
+ meta := #{pid := Pid},
+ level := Level}) ->
+ io_lib:format("[~44s] ~6s ~30s ~30s~n~s~n",
+ [io_lib:format("~p", [E]) ||
+ E <- [Pid, Level, Label, ProcessLabel, Reason]]);
process_event(E) ->
io_lib:format("~n||RAW event||~n~p~n", [E]).
--
2.51.0