aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/init.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-10-10 15:37:34 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-10-10 15:37:34 +0200
commit0b28761f8f4c41107bf94528b044e000fd1da166 (patch)
tree4e90f02eee3dd1a720b7fe37855476562f958e34 /erts/preloaded/src/init.erl
parentae2dc9839aaefa6c50da75917bb82f7a1545d3ad (diff)
downloadotp-0b28761f8f4c41107bf94528b044e000fd1da166.tar.gz
otp-0b28761f8f4c41107bf94528b044e000fd1da166.tar.bz2
otp-0b28761f8f4c41107bf94528b044e000fd1da166.zip
erts: Fix -profile_boot 'true'|'false' parsing
Strictly speaking 'true' and 'false' arguments is not necessary, but it should work if supplied.
Diffstat (limited to 'erts/preloaded/src/init.erl')
-rw-r--r--erts/preloaded/src/init.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl
index 962528f7ab..551ca4ea40 100644
--- a/erts/preloaded/src/init.erl
+++ b/erts/preloaded/src/init.erl
@@ -205,7 +205,7 @@ boot(BootArgs) ->
{Start0,Flags,Args} = parse_boot_args(BootArgs),
%% We don't get to profile parsing of BootArgs
- case get_flag(profile_boot, Flags, false) of
+ case b2a(get_flag(profile_boot, Flags, false)) of
false -> ok;
true -> debug_profile_start()
end,
@@ -782,7 +782,7 @@ do_boot(Init,Flags,Start) ->
(catch erlang:system_info({purify, "Node: " ++ atom_to_list(node())})),
start_em(Start),
- case get_flag(profile_boot,Flags,false) of
+ case b2a(get_flag(profile_boot,Flags,false)) of
false -> ok;
true ->
debug_profile_format_mfas(debug_profile_mfas()),