@@ -47,9 +47,10 @@ STATUS createSocketConnection(KVS_IP_FAMILY_TYPE familyType, KVS_SOCKET_PROTOCOL
47
47
48
48
if (pBindAddr ) {
49
49
getIpAddrStr (pBindAddr , ipAddr , ARRAY_SIZE (ipAddr ));
50
- DLOGD ("create socket with ip: %s:%u. family:%d" , ipAddr , (UINT16 ) getInt16 (pBindAddr -> port ), pBindAddr -> family );
50
+ DLOGD ("create socket id: %d, with ip: %s:%u. family:%d" , pSocketConnection -> localSocket , ipAddr , (UINT16 ) getInt16 (pBindAddr -> port ),
51
+ pBindAddr -> family );
51
52
} else {
52
- DLOGD ("create socket without the bind address(%d:%d)" , familyType , protocol );
53
+ DLOGD ("create socket id %d, without the bind address(%d:%d)" , pSocketConnection -> localSocket , familyType , protocol );
53
54
}
54
55
if (protocol == KVS_SOCKET_PROTOCOL_TCP ) {
55
56
getIpAddrStr (pPeerIpAddr , ipAddr , ARRAY_SIZE (ipAddr ));
@@ -408,7 +409,7 @@ STATUS socketSendDataWithRetry(PSocketConnection pSocketConnection, PBYTE buf, U
408
409
/* nothing need to be done, just retry */
409
410
} else {
410
411
/* fatal error from send() */
411
- DLOGE ("sendto() failed with errno %s(%d)" , getErrorString (errorNum ), errorNum );
412
+ DLOGE ("sendto() socket %d failed with errno %s(%d)" , pSocketConnection -> localSocket , getErrorString (errorNum ), errorNum );
412
413
CHAR ipAddr [KVS_IP_ADDRESS_STRING_BUFFER_LEN ];
413
414
414
415
if (pDestIp != NULL ) {
0 commit comments