From 9b01066059a002d15996d797d911fdd693e29cb7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 13 Nov 2018 18:18:22 +0100 Subject: swrap: Also log the fd in swrap_socket() Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- src/socket_wrapper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit