aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src/rb_format_supp.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-06-12 17:59:05 +0200
committerSiri Hansen <[email protected]>2017-06-16 11:52:21 +0200
commitaa4c93a7e04ce57584f7591b2b0cc62f4407ca00 (patch)
tree85fac17bf876b0f26bbb0c123ba9ed9c7b788059 /lib/sasl/src/rb_format_supp.erl
parentb21f42298cfab6374f2f1d433747399a6e1c9f5c (diff)
downloadotp-aa4c93a7e04ce57584f7591b2b0cc62f4407ca00.tar.gz
otp-aa4c93a7e04ce57584f7591b2b0cc62f4407ca00.tar.bz2
otp-aa4c93a7e04ce57584f7591b2b0cc62f4407ca00.zip
[sasl] Improve handling of unicode in rb
Diffstat (limited to 'lib/sasl/src/rb_format_supp.erl')
-rw-r--r--lib/sasl/src/rb_format_supp.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sasl/src/rb_format_supp.erl b/lib/sasl/src/rb_format_supp.erl
index 0004d85af4..c0e517164a 100644
--- a/lib/sasl/src/rb_format_supp.erl
+++ b/lib/sasl/src/rb_format_supp.erl
@@ -94,13 +94,15 @@ print(Date, Report, Device) ->
[{header, Header}]),
io:format(Device, Format, Args);
{Type, _GL, TypeReport} ->
- io:format(Device, "~nInfo type <~w> ~s~n",
+ Modifier = misc_supp:modifier(Device),
+ io:format(Device, "~nInfo type <~"++Modifier++"w> ~s~n",
[Type, Date]),
- io:format(Device, "~p", [TypeReport]);
+ io:format(Device, "~"++Modifier++"p", [TypeReport]);
_ ->
+ Modifier = misc_supp:modifier(Device),
io:format("~nPrinting info of unknown type... ~s~n",
[Date]),
- io:format(Device, "~p", [Report])
+ io:format(Device, "~"++Modifier++"p", [Report])
% end
end.