aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-04-04 16:27:53 +0200
committerMicael Karlberg <[email protected]>2019-04-17 16:56:33 +0200
commit9f9d59bc9fb6883a4a0e41b4aa6c72f39300ed91 (patch)
tree64a44cc1f39b1142bb277d994f574276dfa26a1b /erts
parent99853433ce5033ca243021bb13edc7456de2b967 (diff)
downloadotp-9f9d59bc9fb6883a4a0e41b4aa6c72f39300ed91.tar.gz
otp-9f9d59bc9fb6883a4a0e41b4aa6c72f39300ed91.tar.bz2
otp-9f9d59bc9fb6883a4a0e41b4aa6c72f39300ed91.zip
[socket] Debug fixes
When setting (otp) debug to true, some debug printouts could become "laaarge". Removed the data from those printout to avoid problems.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index c3b5976a97..1b9a657214 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -15082,9 +15082,7 @@ ERL_NIF_TERM recvmsg_check_msg(ErlNifEnv* env,
} else {
SSDBG( descP,
- ("SOCKET",
- "recvmsg_check_result -> "
- "(msghdr) encode ok: %T\r\n", eMsgHdr) );
+ ("SOCKET", "recvmsg_check_result -> (msghdr) encode ok\r\n") );
recv_update_current_reader(env, descP, sockRef);
@@ -15158,10 +15156,9 @@ char* encode_msghdr(ErlNifEnv* env,
SSDBG( descP,
("SOCKET", "encode_msghdr -> components encoded:"
"\r\n addr: %T"
- "\r\n iov: %T"
"\r\n ctrl: %T"
"\r\n flags: %T"
- "\r\n", addr, iov, ctrl, flags) );
+ "\r\n", addr, ctrl, flags) );
{
ERL_NIF_TERM keys[] = {esock_atom_addr,
esock_atom_iov,
@@ -15178,9 +15175,7 @@ char* encode_msghdr(ErlNifEnv* env,
if (!MKMA(env, keys, vals, numKeys, &tmp))
return ESOCK_STR_EINVAL;
- SSDBG( descP, ("SOCKET", "encode_msghdr -> msghdr: "
- "\r\n %T"
- "\r\n", tmp) );
+ SSDBG( descP, ("SOCKET", "encode_msghdr -> msghdr encoded\r\n") );
*eSockAddr = tmp;
}