aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-10-23 13:53:27 +0200
committerSiri Hansen <[email protected]>2017-10-23 13:53:27 +0200
commit541ee20b9eaefed7802f08cecddfbd12e5f3b516 (patch)
tree90ee11367e07c483a6c8d95db410f3175ec6b151 /lib/sasl/src
parentfcbace8f04c741652820d9f91c6de7b49c92c1d9 (diff)
parent6c92cd8360fcacd85a8edd1cdb3fbfa307a1743f (diff)
downloadotp-541ee20b9eaefed7802f08cecddfbd12e5f3b516.tar.gz
otp-541ee20b9eaefed7802f08cecddfbd12e5f3b516.tar.bz2
otp-541ee20b9eaefed7802f08cecddfbd12e5f3b516.zip
Merge branch 'siri/rb/fix-bad_form/ERL-261/OTP-13906' into maint
* siri/rb/fix-bad_form/ERL-261/OTP-13906: [rb] Don't fail for unexpected type of report
Diffstat (limited to 'lib/sasl/src')
-rw-r--r--lib/sasl/src/format_lib_supp.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sasl/src/format_lib_supp.erl b/lib/sasl/src/format_lib_supp.erl
index 80dcdc91da..00ce1b4e33 100644
--- a/lib/sasl/src/format_lib_supp.erl
+++ b/lib/sasl/src/format_lib_supp.erl
@@ -86,8 +86,10 @@ print_data(Device, Line, [{Key, Value}|T]) ->
print_data(Device, Line, [Value|T]) ->
Modifier = misc_supp:modifier(Device),
io:format(Device, "~"++Modifier++"p~n", [Value]),
- print_data(Device, Line, T).
-
+ print_data(Device, Line, T);
+print_data(Device, _Line, Value) ->
+ Modifier = misc_supp:modifier(Device),
+ io:format(Device, "~"++Modifier++"p~n", [Value]).
print_items(Device, Line, {Name, Items}) ->
print_items(Device, Line, Name, Items).