Commit be9b9760 authored by Rúben Soares Silva's avatar Rúben Soares Silva

Update references of sdu_lenP to uint32_t in _nr_rx_sdu

parent 04e6828c
...@@ -725,10 +725,10 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP, ...@@ -725,10 +725,10 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP,
#if defined(ENABLE_MAC_PAYLOAD_DEBUG) #if defined(ENABLE_MAC_PAYLOAD_DEBUG)
LOG_I(NR_MAC, "Printing received UL MAC payload at gNB side: %d \n"); LOG_I(NR_MAC, "Printing received UL MAC payload at gNB side: %d \n");
for (int i = 0; i < sdu_lenP ; i++) { for (uint32_t i = 0; i < sdu_lenP; i++) {
//harq_process_ul_ue->a[i] = (unsigned char) rand(); // harq_process_ul_ue->a[i] = (unsigned char) rand();
//printf("a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]); // printf("a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
printf("%02x ",(unsigned char)sduP[i]); printf("%02x ", (unsigned char)sduP[i]);
} }
printf("\n"); printf("\n");
...@@ -770,8 +770,8 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP, ...@@ -770,8 +770,8 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP,
} else if (sduP) { } else if (sduP) {
bool no_sig = true; bool no_sig = true;
for (int k = 0; k < sdu_lenP; k++) { for (uint32_t k = 0; k < sdu_lenP; k++) {
if(sduP[k] != 0) { if (sduP[k] != 0) {
no_sig = false; no_sig = false;
break; break;
} }
...@@ -856,7 +856,7 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP, ...@@ -856,7 +856,7 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP,
} else { } else {
LOG_A(NR_MAC, "[RAPROC] RA-Msg3 received (sdu_lenP %d)\n", sdu_lenP); LOG_A(NR_MAC, "[RAPROC] RA-Msg3 received (sdu_lenP %d)\n", sdu_lenP);
LOG_D(NR_MAC, "[RAPROC] Received Msg3:\n"); LOG_D(NR_MAC, "[RAPROC] Received Msg3:\n");
for (int k = 0; k < sdu_lenP; k++) { for (uint32_t k = 0; k < sdu_lenP; k++) {
LOG_D(NR_MAC, "(%i): 0x%x\n", k, sduP[k]); LOG_D(NR_MAC, "(%i): 0x%x\n", k, sduP[k]);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment