X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flsctp.c;h=12f673dcd73fd9b344fbc17c57496074e39de089;hb=7602d994b0efa53be2a79b8f66a8d83be8b5420d;hp=f527b19551455d06bc55d6fcc41a59dc569494c4;hpb=088bb8763eaf91c139ede025faf2fac7e57d25ed;p=o-du%2Fl2.git diff --git a/src/cm/lsctp.c b/src/cm/lsctp.c index f527b1955..12f673dcd 100644 --- a/src/cm/lsctp.c +++ b/src/cm/lsctp.c @@ -43,7 +43,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { - printf("\nSCTP : Failed to allocate memory"); + DU_LOG("\nERROR --> SCTP : Failed to allocate memory"); return RFAILED; } @@ -56,7 +56,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) if (ODU_POST_TASK(pst, mBuf) != ROK) { - printf("\nSCTP : ODU_POST_TASK failed while sending SCTP notification"); + DU_LOG("\nERROR --> SCTP : ODU_POST_TASK failed while sending SCTP notification"); return RFAILED; } @@ -83,7 +83,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) uint8_t cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf) { CmInetSctpNotification ntfy; - memset((uint8_t*)&ntfy, 0, sizeof(CmInetSctpNotification)); + memset(&ntfy, 0, sizeof(CmInetSctpNotification)); oduPackUInt16(&(ntfy.header.nType), mBuf); if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)