[Epic-ID: ODUHIGH-475][Task-ID: ODUHIGH-476]Integration fixes upto PRACH scheduling...
[o-du/l2.git] / src / 5gnrsch / sch_utils.h
index 2731642..cc48c4b 100644 (file)
 #ifdef ODU_MEMORY_DEBUG_LOG
 #define SCH_MEM_LOG(_macro, _file, _line, _func, _size, _datPtr)\
 {\
-   printf("\n%s=== %s +%d, %s, %d, %p\n",           \
-         _macro, _file, _line, _func, _size, _datPtr); \
+   printf("\n%s=== %s +%d, %s, %lu, %p",           \
+         _macro, _file, _line, _func, (uint64_t)_size, (void *)_datPtr); \
 }
 #else
-#define SCH_MEM_LOG(_macro, _file, _line, _func, _size, _dataPtr) {}
+#define SCH_MEM_LOG(_macro, _file, _line, _func, _size, _dataPtr){\
+}
 #endif
 
 #define SCH_ALLOC(_datPtr, _size)                               \
@@ -65,8 +66,8 @@
           (Data **)&_datPtr, _size);                             \
    if(_ret == ROK)                                              \
    {  \
-      SCH_MEM_LOG("SCH_ALLOC", __FILE__, __LINE__, __FUNCTION__, _size, _datPtr);\
       memset(_datPtr, 0, _size);                         \
+      SCH_MEM_LOG("SCH_ALLOC", __FILE__, __LINE__, __FUNCTION__, _size, _datPtr);\
    }                                                            \
    else                                                         \
    {                                                            \
@@ -107,7 +108,7 @@ uint8_t pucchResourceSet[MAX_PUCCH_RES_SET_IDX][4];
 uint8_t puschDeltaTable[MAX_MU_PUSCH];
 uint16_t prachCfgIdxTable[MAX_PRACH_CONFIG_IDX][8];
 uint16_t numRbForPrachTable[MAX_RACH_NUM_RB_IDX][5];
-
+uint8_t schCmnDlRvTbl[4];
 /* Functions declarations : Linked list handler */
 uint8_t addNodeToLList(CmLListCp *llist, void *blockToAdd, CmLList *currNode);
 uint8_t deleteNodeFromLList(CmLListCp *llist, CmLList *node);