aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/proc_lib.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-07-04 10:48:47 +0200
committerJohn Högberg <[email protected]>2017-07-04 10:48:47 +0200
commit522c3cca9ab2895e92984d46e1ca76b6d0aa1de9 (patch)
tree06c6d37c4b0e91548e638f7a90554ac4395e1510 /lib/stdlib/src/proc_lib.erl
parentfcca55a9deb1cfaa107fbe5bf5d093decf423fcd (diff)
parent4acf549207503d7c80cfbd9f0958aafd10da07d0 (diff)
downloadotp-522c3cca9ab2895e92984d46e1ca76b6d0aa1de9.tar.gz
otp-522c3cca9ab2895e92984d46e1ca76b6d0aa1de9.tar.bz2
otp-522c3cca9ab2895e92984d46e1ca76b6d0aa1de9.zip
Merge branch 'maint'
* maint: 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]).