From 6e8da51daf81fc4ce3aac0deef6548a3af34d9eb Mon Sep 17 00:00:00 2001 From: serge Date: Thu, 11 Oct 2012 23:48:25 -0400 Subject: Fix printout of application crash message on startup This is what a sample crash message looks like before applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,[46,47,119,119,119]}},{cmp_app,start,[normal,[]]}}}) This is what a sample crash message looks like after applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,"./www"}},{cmp_app,start,[normal,[]]}}}) --- lib/kernel/src/application_controller.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/kernel') diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl index 68cd26ec10..75ce852001 100644 --- a/lib/kernel/src/application_controller.erl +++ b/lib/kernel/src/application_controller.erl @@ -1960,5 +1960,5 @@ to_string(Term) -> true -> Term; false -> - lists:flatten(io_lib:write(Term)) + lists:flatten(io_lib:format("~134217728p", [Term])) end. -- cgit v1.2.3