Merge "[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-531] RIC Subscription Modification...
[o-du/l2.git] / src / 5gnrmac / lwr_mac_util.c
index 9e18003..0a92691 100644 (file)
@@ -46,7 +46,7 @@ LwrMacCellCb * lwrMacGetCellCb
 
    if(cellId >= MAX_NUM_CELL)
    {
-      printf("\n Invalid Cell Id [%d]. rgClUtlGetCellCb failed.", cellId);
+      DU_LOG("\nERROR  -->  Invalid Cell Id [%d]. rgClUtlGetCellCb failed.", cellId);
       return NULLP;
    }
    
@@ -74,11 +74,11 @@ LwrMacCellCb * lwrMacGetCellCb
 uint32_t reverseBits(uint32_t num, uint8_t numBits)
 {
    uint32_t reverse_num = 0;
-   int i;
-   for (i = 0; i < numBits; i++)
+   uint8_t bitIdx;
+   for (bitIdx = 0; bitIdx < numBits; bitIdx++)
    {
-      if((num & (1 << i)))
-        reverse_num |= 1 << ((numBits - 1) - i);
+      if((num & (1 << bitIdx)))
+        reverse_num |= 1 << ((numBits - 1) - bitIdx);
    }
    return reverse_num;
 }