aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-11-30 18:52:45 +0100
committerRickard Green <[email protected]>2015-11-30 18:52:45 +0100
commit86545dbd6f6f5a3468b919e4daf68dcdb388e80a (patch)
treea78bb062643d673f486476f9849d8b220094a553 /erts/emulator
parent8574c1ad8dd5ae8b4d7234fd97f1c33c71710ab0 (diff)
parent6fe04e5b66ce020651b2c150d26b9af8488b7dcd (diff)
downloadotp-86545dbd6f6f5a3468b919e4daf68dcdb388e80a.tar.gz
otp-86545dbd6f6f5a3468b919e4daf68dcdb388e80a.tar.bz2
otp-86545dbd6f6f5a3468b919e4daf68dcdb388e80a.zip
Merge branch 'rickard/erts-print/OTP-13150' into maint
* rickard/erts-print/OTP-13150: Remove ERTS_PRINT_INVALID from erts_print()
Diffstat (limited to 'erts/emulator')
-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 bb871b05ba..ec94e3a596 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -634,7 +634,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 e9d7c91ac9..5286391746 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -399,9 +399,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;