diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-03-16 16:08:56 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-19 14:57:56 +0100 |
commit | 3c55267c6176a7183c59fc2ca6c1b278df080373 (patch) | |
tree | 72738aadb789ea390489f3e0c18f879756c19325 /erts/emulator/beam | |
parent | c8bcf039d98ec880c5a1d2faf3b44c6033d86d93 (diff) | |
download | otp-3c55267c6176a7183c59fc2ca6c1b278df080373.tar.gz otp-3c55267c6176a7183c59fc2ca6c1b278df080373.tar.bz2 otp-3c55267c6176a7183c59fc2ca6c1b278df080373.zip |
erts: Do not treat errors as fatal in erl_printf_term
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_printf_term.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_printf_term.c b/erts/emulator/beam/erl_printf_term.c index 8046f54a0c..ac5b139f8d 100644 --- a/erts/emulator/beam/erl_printf_term.c +++ b/erts/emulator/beam/erl_printf_term.c @@ -31,7 +31,7 @@ do { \ int res__ = erts_printf_char((FN), (ARG), (C)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -39,7 +39,7 @@ do { \ do { \ int res__ = erts_printf_string((FN), (ARG), (STR)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -47,7 +47,7 @@ do { \ do { \ int res__ = erts_printf_buf((FN), (ARG), (char*)(BUF), (LEN)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -55,7 +55,7 @@ do { \ do { \ int res__ = erts_printf_pointer((FN), (ARG), (void *) (PTR)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -63,7 +63,7 @@ do { \ do { \ int res__ = erts_printf_uword((FN), (ARG), (C), (P), (W), (I)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -71,7 +71,7 @@ do { \ do { \ int res__ = erts_printf_sword((FN), (ARG), (C), (P), (W), (I)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) @@ -79,7 +79,7 @@ do { \ do { \ int res__ = erts_printf_double((FN), (ARG), (C), (P), (W), (I)); \ if (res__ < 0) \ - abort(); \ + return res__; \ (CNT) += res__; \ } while (0) |