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
[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-533] Processing of E2 Connection Update ack
[o-du/l2.git]
/
src
/
5gnrmac
/
lwr_mac_util.c
diff --git
a/src/5gnrmac/lwr_mac_util.c
b/src/5gnrmac/lwr_mac_util.c
index
90448b2
..
0a92691
100644
(file)
--- a/
src/5gnrmac/lwr_mac_util.c
+++ b/
src/5gnrmac/lwr_mac_util.c
@@
-37,7
+37,7
@@
* NULLP - failure
*
* ****************************************************************/
* NULLP - failure
*
* ****************************************************************/
-
PUBLIC
LwrMacCellCb * lwrMacGetCellCb
+LwrMacCellCb * lwrMacGetCellCb
(
uint16_t cellId
)
(
uint16_t cellId
)
@@
-46,7
+46,7
@@
PUBLIC LwrMacCellCb * lwrMacGetCellCb
if(cellId >= MAX_NUM_CELL)
{
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;
}
return NULLP;
}
@@
-74,11
+74,11
@@
PUBLIC LwrMacCellCb * lwrMacGetCellCb
uint32_t reverseBits(uint32_t num, uint8_t numBits)
{
uint32_t reverse_num = 0;
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;
}
}
return reverse_num;
}