aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_printf_term.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-09-07 15:01:46 +0200
committerSverker Eriksson <[email protected]>2015-09-07 15:01:46 +0200
commite619b1713c171826802f703ce1f080b292817560 (patch)
treef5cdba688e90d79dc99c19ddf96f05fc3299e4be /erts/emulator/beam/erl_printf_term.c
parentd449c5a57f55ff0dd4fecd6efe305085def650a5 (diff)
parentae274fd207a2643a858bbe2dfa254b3936990b6e (diff)
downloadotp-e619b1713c171826802f703ce1f080b292817560.tar.gz
otp-e619b1713c171826802f703ce1f080b292817560.tar.bz2
otp-e619b1713c171826802f703ce1f080b292817560.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/erl_printf_term.c')
-rw-r--r--erts/emulator/beam/erl_printf_term.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_printf_term.c b/erts/emulator/beam/erl_printf_term.c
index bbb868b76a..45ba4371dc 100644
--- a/erts/emulator/beam/erl_printf_term.c
+++ b/erts/emulator/beam/erl_printf_term.c
@@ -460,10 +460,7 @@ print_term(fmtfn_t fn, void* arg, Eterm obj, long *dcount) {
}
break;
case BINARY_DEF:
- if (header_is_bin_matchstate(*boxed_val(wobj))) {
- PRINT_STRING(res, fn, arg, "#MatchState");
- }
- else {
+ {
byte* bytep;
Uint bytesize = binary_size(obj);
Uint bitoffs;
@@ -626,6 +623,9 @@ print_term(fmtfn_t fn, void* arg, Eterm obj, long *dcount) {
}
}
break;
+ case MATCHSTATE_DEF:
+ PRINT_STRING(res, fn, arg, "#MatchState");
+ break;
default:
PRINT_STRING(res, fn, arg, "<unknown:");
PRINT_POINTER(res, fn, arg, wobj);