aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src/rb_format_supp.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 16:49:26 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:48 +0200
commit15abdca7ef9c6fb7812f13829346db59173e5681 (patch)
treeac3b875273b6f26201b828c54d740295a9ca5651 /lib/sasl/src/rb_format_supp.erl
parent4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a (diff)
downloadotp-15abdca7ef9c6fb7812f13829346db59173e5681.tar.gz
otp-15abdca7ef9c6fb7812f13829346db59173e5681.tar.bz2
otp-15abdca7ef9c6fb7812f13829346db59173e5681.zip
sasl: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/sasl/src/rb_format_supp.erl')
-rw-r--r--lib/sasl/src/rb_format_supp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sasl/src/rb_format_supp.erl b/lib/sasl/src/rb_format_supp.erl
index 1eda43dae4..b5b7aba151 100644
--- a/lib/sasl/src/rb_format_supp.erl
+++ b/lib/sasl/src/rb_format_supp.erl
@@ -108,7 +108,7 @@ print(Date, Report, Device) ->
format_h(Line, Header, Pid, Date) ->
NHeader = lists:flatten(io_lib:format("~s ~w", [Header, Pid])),
- DateLen = length(Date),
+ DateLen = string:length(Date),
HeaderLen = Line - DateLen,
Format = lists:concat(["~-", HeaderLen, "s~", DateLen, "s"]),
io_lib:format(Format, [NHeader, Date]).