Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[Task-ID: ODUHIGH-485] Memory Leak Detector Tool
[o-du/l2.git]
/
src
/
cm
/
common_def.c
diff --git
a/src/cm/common_def.c
b/src/cm/common_def.c
index
184d1d7
..
785956c
100644
(file)
--- a/
src/cm/common_def.c
+++ b/
src/cm/common_def.c
@@
-283,7
+283,7
@@
uint8_t SGetSBufNewForDebug(char *file, const char *func, int line, Region regio
#ifdef ODU_MEMORY_DEBUG_LOG
if (strncmp(func,"cmInetRecvMsg",sizeof("cmInetRecvMsg")))
{
#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
file, line, func, size, *ptr);
}
#endif
@@
-316,7
+316,7
@@
uint8_t SPutSBufNewForDebug(char *file, const char *func, int line, Region regio
#ifdef ODU_MEMORY_DEBUG_LOG
if (strncmp(func,"cmInetRecvMsg",sizeof("cmInetRecvMsg")))
{
#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
file, line, func, size, ptr);
}
#endif
@@
-349,7
+349,7
@@
Region region, Pool pool, Data **ptr, Size size, uint8_t memType)
if(SGetStaticBuffer(region, pool, ptr, size, memType) == ROK)
{
#ifdef ODU_MEMORY_DEBUG_LOG
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;
file, line, func, size, *ptr);
#endif
return ROK;
@@
-380,7
+380,7
@@
Region region, Pool pool, Data *ptr, Size size, uint8_t memType)
if(SPutStaticBuffer(region, pool, ptr, size, memType) == ROK)
{
#ifdef ODU_MEMORY_DEBUG_LOG
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;
file, line, func, size, ptr);
#endif
return ROK;