Updated IP and Port configurations
[o-du/l2.git] / src / cm / cm_inet.c
index e7c600e..cd12a0a 100644 (file)
@@ -152,6 +152,7 @@ extern "C" {
 #ifdef NTL_LIB
 #include "ntl_lib.h"
 #endif 
+#include "du_log.h"
 
 \f  
 /* local defines */
@@ -2296,10 +2297,8 @@ U16                port;         /* port number */
             " sockFd->fd(%ld)\n", INET_ERR_CODE, port, sockFd->fd);
       CMINETLOGERROR(ERRCLS_DEBUG, ECMINET010, 0, prntBuf);
 #else
-      /* cm_inet_c_001.main_62:Warning fix */
-      snprintf(prntBuf, CMINET_PRNT_BUF_SIZE, "CmInetSctpConnectx() Failed : error(%d), port(0x%1x),"
-            " sockFd->fd(%d)\n", INET_ERR_CODE, port, sockFd->fd);
-      CMINETLOGERROR(ERRCLS_DEBUG, ECMINET010, 0, prntBuf);
+      DU_LOG("\nCmInetSctpConnectx() Failed : error(%d), port(0x%1x),\
+                  sockFd->fd(%d)\n", INET_ERR_CODE, port, sockFd->fd);
 #endif /*ALIGN_64BIT*/
 #endif /* CMINETDBG */
 
@@ -2778,10 +2777,8 @@ CmInetSctpNotification *ntfy;         /* notification parameters */
             " sockFd->fd(%ld)\n", INET_ERR_CODE, sockFd->fd);
       CMINETLOGERROR(ERRCLS_DEBUG, ECMINET014, 0, prntBuf);
 #else
-      /* cm_inet_c_001.main_62:Warning fix */
-      snprintf(prntBuf, CMINET_PRNT_BUF_SIZE, "cmInetSctpRecvMsg() Failed : error(%d),"
-            " sockFd->fd(%d)\n",  INET_ERR_CODE, sockFd->fd);
-      CMINETLOGERROR(ERRCLS_DEBUG, ECMINET014, 0, prntBuf);
+      DU_LOG("\ncmInetSctpRecvMsg() Failed : error(%d), sockFd->fd(%d)", \
+         INET_ERR_CODE, sockFd->fd);
 #endif /*ALIGN_64BIT*/
 #endif /* CMINETDBG */
 
@@ -3368,12 +3365,14 @@ Ptr       value;                /* option value */
          if (status.sstat_primary.spinfo_state == SCTP_ACTIVE)
              pSctpStatus->primary.isActive = TRUE;
          else
+                       {
              pSctpStatus->primary.isActive = FALSE;
              pSctpStatus->primary.cwnd = status.sstat_primary.spinfo_cwnd;
              pSctpStatus->primary.srtt = status.sstat_primary.spinfo_srtt;
              pSctpStatus->primary.rto  = status.sstat_primary.spinfo_rto;
              pSctpStatus->primary.mtu  = status.sstat_primary.spinfo_mtu;
-         break;
+         }
+                       break;
 
       case CM_INET_OPT_SCTP_GET_PADDR_INFO:
          pPeerAddrInfo = (CmInetSctpPeerAddrInfo*)value;