aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-13 18:18:22 +0100
committerAndreas Schneider <asn@samba.org>2018-11-13 19:07:19 +0100
commit9b01066059a002d15996d797d911fdd693e29cb7 (patch)
treef1f4b94df103e3cc182aad8350f71aa9e2842938 /src
parentce38138a9ac1b9e36b3338ee9ebcdc5686d541a4 (diff)
downloadsocket_wrapper-9b01066059a002d15996d797d911fdd693e29cb7.tar.gz
socket_wrapper-9b01066059a002d15996d797d911fdd693e29cb7.tar.xz
socket_wrapper-9b01066059a002d15996d797d911fdd693e29cb7.zip
swrap: Also log the fd in swrap_socket()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index ae3b2b0..e02f083 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -3161,9 +3161,10 @@ static int swrap_socket(int family, int type, int protocol)
}
SWRAP_LOG(SWRAP_LOG_TRACE,
- "Created %s socket for protocol %s",
+ "Created %s socket for protocol %s, fd=%d",
family == AF_INET ? "IPv4" : "IPv6",
- real_type == SOCK_DGRAM ? "UDP" : "TCP");
+ real_type == SOCK_DGRAM ? "UDP" : "TCP",
+ fd);
return fd;
}