aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-11-30 18:50:31 +0100
committerRickard Green <[email protected]>2015-11-30 18:50:31 +0100
commit6fe04e5b66ce020651b2c150d26b9af8488b7dcd (patch)
treebc696e3885d2bc11d5497358bed7b362f6dda6a4 /erts/emulator/beam/utils.c
parentc24a4bf84029d06cc79f49634684cd6d2eeafb62 (diff)
downloadotp-6fe04e5b66ce020651b2c150d26b9af8488b7dcd.tar.gz
otp-6fe04e5b66ce020651b2c150d26b9af8488b7dcd.tar.bz2
otp-6fe04e5b66ce020651b2c150d26b9af8488b7dcd.zip
Remove ERTS_PRINT_INVALID from erts_print()
ERTS_PRINT_INVALID prevented file descriptor 0 to be used which could cause an empty crash dump.
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c3
1 files changed, 0 insertions, 3 deletions
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;