aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_dbg.hrl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-11-01 15:01:01 +0100
committerHans Nilsson <[email protected]>2016-11-10 17:37:28 +0100
commit067d8310093620ce1139e8d8a030bce6dd22d886 (patch)
tree24407b72d16eeab78395fcdf62df4fd116d20d96 /lib/ssh/src/ssh_dbg.hrl
parentbbdba69b905f87d95257a65d902fc09c25f0be4a (diff)
downloadotp-067d8310093620ce1139e8d8a030bce6dd22d886.tar.gz
otp-067d8310093620ce1139e8d8a030bce6dd22d886.tar.bz2
otp-067d8310093620ce1139e8d8a030bce6dd22d886.zip
ssh: exported ssh_dbg:shrink_bin and ssh_dbg:wr_record/3 for debugging purposes
Diffstat (limited to 'lib/ssh/src/ssh_dbg.hrl')
-rw-r--r--lib/ssh/src/ssh_dbg.hrl27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_dbg.hrl b/lib/ssh/src/ssh_dbg.hrl
new file mode 100644
index 0000000000..e94664737b
--- /dev/null
+++ b/lib/ssh/src/ssh_dbg.hrl
@@ -0,0 +1,27 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2004-2016. 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.
+%% You may obtain a copy of the License at
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+%% See the License for the specific language governing permissions and
+%% limitations under the License.
+%%
+%% %CopyrightEnd%
+%%
+
+-ifndef(SSH_DBG_HRL).
+-define(SSH_DBG_HRL, 1).
+
+-define(formatrec(RecName,R),
+ ssh_dbg:wr_record(R, record_info(fields,RecName), [])).
+
+-endif. % SSH_DBG_HRL defined