diff options
author | Björn Gustavsson <[email protected]> | 2017-10-05 13:10:42 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-10-13 11:55:47 +0200 |
commit | 20c2b1b174b44ed24afe73b3ac604e14d8c9318f (patch) | |
tree | 12de0b016a086e9bfc45ee498f201e36fe4c6e6f /erts/emulator/test/scheduler_SUITE.erl | |
parent | 0f2e313475bae2d3870333b0340e8453bbff51a5 (diff) | |
download | otp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.tar.gz otp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.tar.bz2 otp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.zip |
Eliminate use of deprecated functions in string
Diffstat (limited to 'erts/emulator/test/scheduler_SUITE.erl')
-rw-r--r-- | erts/emulator/test/scheduler_SUITE.erl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/test/scheduler_SUITE.erl b/erts/emulator/test/scheduler_SUITE.erl index 7afb82a1b8..7eebbe8b19 100644 --- a/erts/emulator/test/scheduler_SUITE.erl +++ b/erts/emulator/test/scheduler_SUITE.erl @@ -894,11 +894,9 @@ adjust_schedulers_online() -> read_affinity(Data) -> Exp = "pid " ++ os:getpid() ++ "'s current affinity mask", - case string:tokens(Data, ":") of + case string:lexemes(Data, ":") of [Exp, DirtyAffinityStr] -> - AffinityStr = string:strip(string:strip(DirtyAffinityStr, - both, $ ), - both, $\n), + AffinityStr = string:trim(DirtyAffinityStr), case catch erlang:list_to_integer(AffinityStr, 16) of Affinity when is_integer(Affinity) -> Affinity; |