if(crc_flag==0)LOG_I(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
LOG_I(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
LOG_W(NR_MAC,"symbol 0x%x is not free for PUCCH alloc in vrb_map_UL at RB %ld and slot %d.%d\n",symb,resource->startingPRB,pucch->frame,pucch->ul_slot);
LOG_W(NR_MAC,"symbol 0x%x is not free for PUCCH alloc in vrb_map_UL at RB %ld and slot %d.%d\n",symb,resource->startingPRB,pucch->frame,pucch->ul_slot);
// L: The Length field indicates the length of the corresponding MAC SDU or variable-sized MAC CE in bytes. There is one L field per MAC subheader except for subheaders corresponding to fixed-sized MAC CEs and padding. The size of the L field is indicated by the F field;
// F: lenght of L is 0:8 or 1:16 bits wide
// R: Reserved bit, set to zero.
while(!done&&pdu_len>0){
mac_ce_len=0;
mac_subheader_len=1;// default to fixed-length subheader = 1-oct