summaryrefslogtreecommitdiff
path: root/lib/kernel/src/net_kernel.erl
diff options
context:
space:
mode:
authorLuis Rascao <luis.rascao@gmail.com>2016-09-10 21:02:47 +0200
committerLuis Rascao <luis.rascao@gmail.com>2016-09-19 14:12:22 +0100
commitdb12deff975c013a0ac02cfb49a339f8e6af5938 (patch)
treedb7182c9cd0ca4c5997fbd8bbc2036d9603c3df6 /lib/kernel/src/net_kernel.erl
parent687eae1e86817403249f03f534a256a28c5d5251 (diff)
downloaderlang-db12deff975c013a0ac02cfb49a339f8e6af5938.tar.gz
Allow for easier enabling of distribution debug
Also update already deprecated calls.
Diffstat (limited to 'lib/kernel/src/net_kernel.erl')
-rw-r--r--lib/kernel/src/net_kernel.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl
index 0c679e7349..0a9f9316b0 100644
--- a/lib/kernel/src/net_kernel.erl
+++ b/lib/kernel/src/net_kernel.erl
@@ -26,15 +26,13 @@
%%-define(dist_debug, true).
-%-define(DBG,erlang:display([?MODULE,?LINE])).
-
-ifdef(dist_debug).
-define(debug(Term), erlang:display(Term)).
-else.
-define(debug(Term), ok).
-endif.
--ifdef(DEBUG).
+-ifdef(dist_debug).
-define(connect_failure(Node,Term),
io:format("Net Kernel 2: Failed connection to node ~p, reason ~p~n",
[Node,Term])).