Log argument indexed passed the end of array.
Unnecessary dl_ind_type array for logging.
This commit is contained in:
@@ -43,8 +43,6 @@
|
|||||||
|
|
||||||
#define MAX_IF_MODULES 100
|
#define MAX_IF_MODULES 100
|
||||||
|
|
||||||
const char *dl_indication_type[] = {"MIB", "SIB", "DLSCH", "DCI", "RAR"};
|
|
||||||
|
|
||||||
UL_IND_t *UL_INFO = NULL;
|
UL_IND_t *UL_INFO = NULL;
|
||||||
|
|
||||||
|
|
||||||
@@ -768,9 +766,9 @@ int nr_ue_dl_indication(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_
|
|||||||
|
|
||||||
for(i=0; i<dl_info->rx_ind->number_pdus; ++i){
|
for(i=0; i<dl_info->rx_ind->number_pdus; ++i){
|
||||||
|
|
||||||
LOG_D(MAC, "In %s sending DL indication to MAC. 1 PDU type %s of %d total number of PDUs \n",
|
LOG_D(MAC, "In %s sending DL indication to MAC. 1 PDU type %d of %d total number of PDUs \n",
|
||||||
__FUNCTION__,
|
__FUNCTION__,
|
||||||
dl_indication_type[dl_info->rx_ind->rx_indication_body[i].pdu_type - 1],
|
dl_info->rx_ind->rx_indication_body[i].pdu_type,
|
||||||
dl_info->rx_ind->number_pdus);
|
dl_info->rx_ind->number_pdus);
|
||||||
|
|
||||||
switch(dl_info->rx_ind->rx_indication_body[i].pdu_type){
|
switch(dl_info->rx_ind->rx_indication_body[i].pdu_type){
|
||||||
|
|||||||
Reference in New Issue
Block a user