diff options
author | Siri Hansen <[email protected]> | 2017-07-06 17:25:37 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-15 17:07:51 +0200 |
commit | fb9235e7c3a6872a1394e5ba0c78217d9617f8e3 (patch) | |
tree | 758aa4ef26fac6475883450b4ccc599d23bcc08e /lib/observer/src/observer_html_lib.erl | |
parent | 09e2288b7a42345ea76e5e23ad93346c63efb06d (diff) | |
download | otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.gz otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.bz2 otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.zip |
observer: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/observer/src/observer_html_lib.erl')
-rw-r--r-- | lib/observer/src/observer_html_lib.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/observer/src/observer_html_lib.erl b/lib/observer/src/observer_html_lib.erl index 1f1306c370..d89fb62681 100644 --- a/lib/observer/src/observer_html_lib.erl +++ b/lib/observer/src/observer_html_lib.erl @@ -283,24 +283,24 @@ href_proc_port("['#CDVPort'"++T,Acc,LTB) -> %% Port written by crashdump_viewer:parse_term(...) {Port0,Rest} = split($],T), PortStr= - case string:tokens(Port0,",.|") of + case string:lexemes(Port0,",.|") of [X,Y] -> Port = "#Port<"++X++"."++Y++">", href(Port,Port); Ns -> - "#Port<" ++ string:join(Ns,".") ++"...>" + "#Port<" ++ lists:join($.,Ns) ++"...>" end, href_proc_port(Rest,[PortStr|Acc],LTB); href_proc_port("['#CDVPid'"++T,Acc,LTB) -> %% Pid written by crashdump_viewer:parse_term(...) {Pid0,Rest} = split($],T), PidStr = - case string:tokens(Pid0,",.|") of + case string:lexemes(Pid0,",.|") of [X,Y,Z] -> Pid = "<"++X++"."++Y++"."++Z++">", href(Pid,Pid); Ns -> - "<" ++ string:join(Ns,".") ++ "...>" + "<" ++ lists:join($.,Ns) ++ "...>" end, href_proc_port(Rest,[PidStr|Acc],LTB); href_proc_port("'#CDVIncompleteHeap'"++T,Acc,LTB)-> @@ -337,7 +337,7 @@ href_proc_port([],Acc,_) -> href_proc_bin(From, T, Acc, LTB) -> {OffsetSizePos,Rest} = split($],T), BinStr = - case string:tokens(OffsetSizePos,",.| \n") of + case string:lexemes(OffsetSizePos,",.| \n") of [Offset,SizeStr,Pos] when From =:= cdv -> Id = {list_to_integer(Offset),10,list_to_integer(Pos)}, {ok,PreviewBin} = crashdump_viewer:expand_binary(Id), |