diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-10-10 15:37:34 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-10-10 15:37:34 +0200 |
commit | 0b28761f8f4c41107bf94528b044e000fd1da166 (patch) | |
tree | 4e90f02eee3dd1a720b7fe37855476562f958e34 | |
parent | ae2dc9839aaefa6c50da75917bb82f7a1545d3ad (diff) | |
download | otp-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.
-rw-r--r-- | erts/preloaded/src/init.erl | 4 |
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()), |