aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/include/dist_util.hrl
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2016-09-10 21:02:47 +0200
committerLuis Rascao <[email protected]>2016-09-19 14:12:22 +0100
commitdb12deff975c013a0ac02cfb49a339f8e6af5938 (patch)
treedb7182c9cd0ca4c5997fbd8bbc2036d9603c3df6 /lib/kernel/include/dist_util.hrl
parent687eae1e86817403249f03f534a256a28c5d5251 (diff)
downloadotp-db12deff975c013a0ac02cfb49a339f8e6af5938.tar.gz
otp-db12deff975c013a0ac02cfb49a339f8e6af5938.tar.bz2
otp-db12deff975c013a0ac02cfb49a339f8e6af5938.zip
Allow for easier enabling of distribution debug
Also update already deprecated calls.
Diffstat (limited to 'lib/kernel/include/dist_util.hrl')
-rw-r--r--lib/kernel/include/dist_util.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/include/dist_util.hrl b/lib/kernel/include/dist_util.hrl
index 320e916c04..e3d2fe0eb6 100644
--- a/lib/kernel/include/dist_util.hrl
+++ b/lib/kernel/include/dist_util.hrl
@@ -29,7 +29,7 @@
-endif.
-ifdef(dist_trace).
--define(trace(Fmt,Args), io:format("~p ~p:~s",[erlang:now(),node(),lists:flatten(io_lib:format(Fmt, Args))])).
+-define(trace(Fmt,Args), io:format("~p ~p:~s",[erlang:timestamp(),node(),lists:flatten(io_lib:format(Fmt, Args))])).
% Use the one below for config-file (early boot) connection tracing
%-define(trace(Fmt,Args), erlang:display([erlang:now(),node(),lists:flatten(io_lib:format(Fmt, Args))])).
-define(trace_factor,8).