X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_util.c;h=0a926913cc95673a0629298eb6ad723e6d53b0fb;hb=de6a435729e3cad9d4a66329080b8206a64f452c;hp=90448b2a2b608fa648fdd9840d3b4d083131a601;hpb=a5530e70a9d414952dadd1688aa9b4280c0dbb5a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_util.c b/src/5gnrmac/lwr_mac_util.c index 90448b2a2..0a926913c 100644 --- a/src/5gnrmac/lwr_mac_util.c +++ b/src/5gnrmac/lwr_mac_util.c @@ -37,7 +37,7 @@ * NULLP - failure * * ****************************************************************/ -PUBLIC LwrMacCellCb * lwrMacGetCellCb +LwrMacCellCb * lwrMacGetCellCb ( uint16_t cellId ) @@ -46,7 +46,7 @@ PUBLIC 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 @@ PUBLIC 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; }