From 6d955c8377f4df9c215424349050b38b8c7628b4 Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Tue, 7 May 2019 12:47:49 +0200 Subject: [snmp] Remove use of the deprecated get_stacktrace function Removed the use of the deprecated erlang:stacktrace() function. Instead make use of the 'catch Class:Error:Stacktrace' feature. OTP-15332 --- lib/snmp/src/app/snmp_internal.hrl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/snmp/src/app') diff --git a/lib/snmp/src/app/snmp_internal.hrl b/lib/snmp/src/app/snmp_internal.hrl index 374767df15..97a7c63ef1 100644 --- a/lib/snmp/src/app/snmp_internal.hrl +++ b/lib/snmp/src/app/snmp_internal.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2006-2016. All Rights Reserved. +%% Copyright Ericsson AB 2006-2019. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ -define(APPLICATION, snmp). -endif. --define(STACK(), erlang:get_stacktrace()). - -define(snmp_info(C, F, A), ?snmp_msg(info_msg, C, F, A)). -define(snmp_warning(C, F, A), ?snmp_msg(warning_msg, C, F, A)). -define(snmp_error(C, F, A), ?snmp_msg(error_msg, C, F, A)). -- cgit v1.2.3