aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2015-12-04 15:13:08 +0100
committerErlang/OTP <[email protected]>2015-12-04 15:13:08 +0100
commit6d51b1e37c600768556e1503b4752cef7f708184 (patch)
tree6ef164dde63c56f37ccc09fc352cf41cc3bd0cc6 /erts
parent4481c1b152a4442f2e0a648ab2877313dcc97c50 (diff)
parent59aae51046e79b1c8a3cf2473fd4618e9d617ac6 (diff)
downloadotp-6d51b1e37c600768556e1503b4752cef7f708184.tar.gz
otp-6d51b1e37c600768556e1503b4752cef7f708184.tar.bz2
otp-6d51b1e37c600768556e1503b4752cef7f708184.zip
Merge branch 'rickard/erts-print/17/OTP-13150' into maint-17
* rickard/erts-print/17/OTP-13150: Remove ERTS_PRINT_INVALID from erts_print()
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/sys.h1
-rw-r--r--erts/emulator/beam/utils.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index c29d4b3777..f8ab0df082 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -577,7 +577,6 @@ Uint erts_sys_misc_mem_sz(void);
/* Io constants to erts_print and erts_putc */
#define ERTS_PRINT_STDERR (2)
#define ERTS_PRINT_STDOUT (1)
-#define ERTS_PRINT_INVALID (0) /* Don't want to use 0 since CBUF was 0 */
#define ERTS_PRINT_FILE (-1)
#define ERTS_PRINT_SBUF (-2)
#define ERTS_PRINT_SNBUF (-3)
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index a8bbdb9354..ebc549fb31 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -343,9 +343,6 @@ erts_print(int to, void *arg, char *format, ...)
case ERTS_PRINT_DSBUF:
res = erts_vdsprintf((erts_dsprintf_buf_t *) arg, format, arg_list);
break;
- case ERTS_PRINT_INVALID:
- res = -EINVAL;
- break;
default:
res = erts_vfdprintf((int) to, format, arg_list);
break;