aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_procinfo.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-07-06 17:25:37 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:51 +0200
commitfb9235e7c3a6872a1394e5ba0c78217d9617f8e3 (patch)
tree758aa4ef26fac6475883450b4ccc599d23bcc08e /lib/observer/src/observer_procinfo.erl
parent09e2288b7a42345ea76e5e23ad93346c63efb06d (diff)
downloadotp-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_procinfo.erl')
-rw-r--r--lib/observer/src/observer_procinfo.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/observer_procinfo.erl b/lib/observer/src/observer_procinfo.erl
index 10decd8b62..fc91e8cd88 100644
--- a/lib/observer/src/observer_procinfo.erl
+++ b/lib/observer/src/observer_procinfo.erl
@@ -454,7 +454,8 @@ local_pid_str(Pid) ->
global_pid_node_pref(Pid) ->
%% Global PID node prefix : X of <X.Y.Z>
- string:strip(string:sub_word(pid_to_list(Pid),1,$.),left,$<).
+ [NodePrefix|_] = string:lexemes(pid_to_list(Pid),"<."),
+ NodePrefix.
io_get_data(Pid) ->
Pid ! {self(), get_data_and_close},