X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcommon_def.c;h=785956ca7887753f4f7f9c98a9a07f59602cb65e;hb=531da47c7bfb6ce138a454f66eb184729860beef;hp=cfe9cf7ab356b2b7df3439e8b9583ec168d19c94;hpb=49dc0e36836dc940ec40dea3a475ff067177819a;p=o-du%2Fl2.git diff --git a/src/cm/common_def.c b/src/cm/common_def.c index cfe9cf7ab..785956ca7 100644 --- a/src/cm/common_def.c +++ b/src/cm/common_def.c @@ -276,14 +276,14 @@ uint8_t convertScsPeriodicityToEnum(uint32_t num) * RFAILED - failure * * ****************************************************************/ -uint8_t SGetSBufNewForDebug(char *file, char *func, char *line, Region region, Pool pool, Data **ptr, Size size) +uint8_t SGetSBufNewForDebug(char *file, const char *func, int line, Region region, Pool pool, Data **ptr, Size size) { if(SGetSBuf(region, pool, ptr, size) == ROK) { #ifdef ODU_MEMORY_DEBUG_LOG if (strncmp(func,"cmInetRecvMsg",sizeof("cmInetRecvMsg"))) { - printf("\nCM_ALLOC=== SGetSBufNewForDebug %s +%d, %s, %d, %p\n",\ + printf("\nCM,ALLOC,=== SGetSBufNewForDebug %s +%d, %s, %d, %p \n",\ file, line, func, size, *ptr); } #endif @@ -309,14 +309,14 @@ uint8_t SGetSBufNewForDebug(char *file, char *func, char *line, Region region, P * RFAILED - failure * * ****************************************************************/ -uint8_t SPutSBufNewForDebug(char *file, char *func, char *line, Region region, Pool pool, Data *ptr, Size size) +uint8_t SPutSBufNewForDebug(char *file, const char *func, int line, Region region, Pool pool, Data *ptr, Size size) { if(SPutSBuf(region, pool, ptr, size) == ROK) { #ifdef ODU_MEMORY_DEBUG_LOG if (strncmp(func,"cmInetRecvMsg",sizeof("cmInetRecvMsg"))) { - printf("\nCM_FREE=== SPutSBufNewForDebug %s +%d, %s, %d, %p\n",\ + printf("\nCM,FREE,=== SPutSBufNewForDebug %s +%d, %s, %d, %p \n",\ file, line, func, size, ptr); } #endif @@ -343,13 +343,13 @@ uint8_t SPutSBufNewForDebug(char *file, char *func, char *line, Region region, P * RFAILED - failure * * ****************************************************************/ -uint8_t SGetStaticBufNewForDebug(char *file, char *func, char *line, \ +uint8_t SGetStaticBufNewForDebug(char *file, const char *func, int line, \ Region region, Pool pool, Data **ptr, Size size, uint8_t memType) { if(SGetStaticBuffer(region, pool, ptr, size, memType) == ROK) { #ifdef ODU_MEMORY_DEBUG_LOG - printf("\nCM_ALLOC=== SGetStaticBufNewForDebug %s +%d, %s, %d, %p\n",\ + printf("\nCM,ALLOC,=== SGetStaticBufNewForDebug %s +%d, %s, %d, %p \n",\ file, line, func, size, *ptr); #endif return ROK; @@ -374,13 +374,13 @@ Region region, Pool pool, Data **ptr, Size size, uint8_t memType) * RFAILED - failure * * ****************************************************************/ -uint8_t SPutStaticBufNewForDebug(char *file, char *func, char *line, \ +uint8_t SPutStaticBufNewForDebug(char *file, const char *func, int line, \ Region region, Pool pool, Data *ptr, Size size, uint8_t memType) { if(SPutStaticBuffer(region, pool, ptr, size, memType) == ROK) { #ifdef ODU_MEMORY_DEBUG_LOG - printf("\nCM_FREE=== SPutStaticBufNewForDebug %s +%d, %s, %d, %p\n",\ + printf("\nCM,FREE,=== SPutStaticBufNewForDebug %s +%d, %s, %d, %p \n",\ file, line, func, size, ptr); #endif return ROK; @@ -416,6 +416,7 @@ uint8_t countSetBits(uint32_t num) } return(count); } + /********************************************************************** End of file **********************************************************************/