aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/proc_lib.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-07-04 10:45:51 +0200
committerJohn Högberg <[email protected]>2017-07-04 10:45:51 +0200
commit4acf549207503d7c80cfbd9f0958aafd10da07d0 (patch)
treebbe950aa6dd6d4ac264af149571ebf8113c77135 /lib/stdlib/src/proc_lib.erl
parentf07821b47f8dcf69be22277e316167491a2ef295 (diff)
parenta01de6873844ba510084090abec734c4166d71fa (diff)
downloadotp-4acf549207503d7c80cfbd9f0958aafd10da07d0.tar.gz
otp-4acf549207503d7c80cfbd9f0958aafd10da07d0.tar.bz2
otp-4acf549207503d7c80cfbd9f0958aafd10da07d0.zip
Merge branch 'maint-20' into maint
* maint-20: Updated OTP version Update release notes Update version numbers erts: Fix bug in quick alloc Fix old length usage in string stdlib: Fix bug in proc_lib Support arbitrary crash report in proc_lib.
Diffstat (limited to 'lib/stdlib/src/proc_lib.erl')
-rw-r--r--lib/stdlib/src/proc_lib.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stdlib/src/proc_lib.erl b/lib/stdlib/src/proc_lib.erl
index 9ce8e7d60e..d4d1bdccec 100644
--- a/lib/stdlib/src/proc_lib.erl
+++ b/lib/stdlib/src/proc_lib.erl
@@ -779,11 +779,13 @@ format_link_report([Link|Reps], Indent, Extra) ->
LinkIndent = [" ",Indent],
[Indent,"neighbour:\n",format_report(Rep, LinkIndent, Extra)|
format_link_report(Reps, Indent, Extra)];
-format_link_report([], _, _) ->
- [].
+format_link_report(Rep, Indent, Extra) ->
+ format_report(Rep, Indent, Extra).
format_report(Rep, Indent, Extra) when is_list(Rep) ->
format_rep(Rep, Indent, Extra);
+format_report(Rep, Indent, {Enc,unlimited}) ->
+ io_lib:format("~s~"++modifier(Enc)++"p~n", [Indent, Rep]);
format_report(Rep, Indent, {Enc,Depth}) ->
io_lib:format("~s~"++modifier(Enc)++"P~n", [Indent, Rep, Depth]).