aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-12-20 15:40:43 +0100
committerDan Gudmundsson <[email protected]>2014-01-21 10:56:50 +0100
commitdd694884e4883f6ddc4f83f2ca62b63dc8f828a2 (patch)
tree1c9614d8b6b64a75f8ecc7e8a6eab811289893d2 /lib/runtime_tools
parent8a841f13cd393cd174310d22cf2e7c195bbd1a13 (diff)
downloadotp-dd694884e4883f6ddc4f83f2ca62b63dc8f828a2.tar.gz
otp-dd694884e4883f6ddc4f83f2ca62b63dc8f828a2.tar.bz2
otp-dd694884e4883f6ddc4f83f2ca62b63dc8f828a2.zip
rt_tools: Handle unicode chars in printouts
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r--lib/runtime_tools/src/system_information.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/runtime_tools/src/system_information.erl b/lib/runtime_tools/src/system_information.erl
index 1d4b878d79..603b698d5e 100644
--- a/lib/runtime_tools/src/system_information.erl
+++ b/lib/runtime_tools/src/system_information.erl
@@ -280,7 +280,7 @@ print_environments([],_) ->
print_environment({_Key, false},_) -> ok;
print_environment({Key, Value},_) ->
- io:format(" - ~s = ~s~n", [Key, Value]).
+ io:format(" - ~s = ~ts~n", [Key, Value]).
print_modules_from_code(M, [Info|Ms], Opts) ->
print_module_from_code(M, Info),
@@ -292,14 +292,14 @@ print_modules_from_code(_, [], _) ->
ok.
print_module_from_code(M, {Path, [{M,ModInfo}]}) ->
- io:format(" from path \"~s\" (no application):~n", [Path]),
+ io:format(" from path \"~ts\" (no application):~n", [Path]),
io:format(" - compiler: ~s~n", [get_value([compiler], ModInfo)]),
io:format(" - md5: ~s~n", [get_value([md5], ModInfo)]),
io:format(" - native: ~w~n", [get_value([native], ModInfo)]),
io:format(" - loaded: ~w~n", [get_value([loaded], ModInfo)]),
ok;
print_module_from_code(M, {App,Vsn,Path,[{M,ModInfo}]}) ->
- io:format(" from path \"~s\" (~w-~s):~n", [Path,App,Vsn]),
+ io:format(" from path \"~ts\" (~w-~s):~n", [Path,App,Vsn]),
io:format(" - compiler: ~s~n", [get_value([compiler], ModInfo)]),
io:format(" - md5: ~s~n", [get_value([md5], ModInfo)]),
io:format(" - native: ~w~n", [get_value([native], ModInfo)]),