File 0761-snmp-agent-Fixed-verbosity-printout-formating.patch of Package erlang

From 733c98f4638ea161b50921bbd0f7b1b6b6d7988b Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 5 Sep 2019 15:50:42 +0200
Subject: [PATCH 3/3] [snmp|agent] Fixed verbosity printout formating

A bug in a verbosity printout caused the printout'to be badly
mangled (" n" should have been "~n").
---
 lib/snmp/src/agent/snmp_generic.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/snmp/src/agent/snmp_generic.erl b/lib/snmp/src/agent/snmp_generic.erl
index 26a0dd0648..429f78abd0 100644
--- a/lib/snmp/src/agent/snmp_generic.erl
+++ b/lib/snmp/src/agent/snmp_generic.erl
@@ -418,8 +418,8 @@ table_check_status(NameDb, Col, ?'RowStatus_createAndGo', RowIndex, Cols) ->
 		{'EXIT', _Reason} ->
 		    ?vtrace(
 		       "failed construct row (createAndGo): "
-		       " n   Reason: ~p"
-		       " n   Stack:  ~p",
+		       "~n   Reason: ~p"
+		       "~n   Stack:  ~p",
 		       [_Reason, erlang:get_stacktrace()]),
 		    {noCreation, Col}; % Bad RowIndex
 		Row ->
@@ -440,8 +440,8 @@ table_check_status(NameDb, Col, ?'RowStatus_createAndWait', RowIndex, Cols) ->
 		{'EXIT', _Reason} ->
 		    ?vtrace(
 		       "failed construct row (createAndWait): "
-		       " n   Reason: ~p"
-		       " n   Stack:  ~p",
+		       "~n   Reason: ~p"
+		       "~n   Stack:  ~p",
 		       [_Reason, erlang:get_stacktrace()]),
 		    {noCreation, Col}; % Bad RowIndex
 		_Row ->
-- 
2.16.4

openSUSE Build Service is sponsored by