diff --git a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c index b1c0f08cd10c43098e3810011763be59e98b575a..384d12ac8047e993dacd50955a38d012873ea13d 100644 --- a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c +++ b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c @@ -1047,7 +1047,9 @@ rlc_um_receive_process_dar (rlc_um_entity_t *rlc_pP, frame_t frameP, eNB_flag_t } in_window = rlc_um_in_window(rlc_pP, frameP, rlc_pP->vr_uh - rlc_pP->rx_um_window_size, sn, rlc_pP->vr_ur); +#if defined(DEBUG_RLC_PAYLOAD) rlc_util_print_hex_octets(RLC, &pdu_pP->b1, tb_sizeP); +#endif // rlc_um_in_window() returns -2 if lower_bound > sn // rlc_um_in_window() returns -1 if higher_bound < sn diff --git a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c index 7d09a6c14a563f9b2ae824c7485c8e71ae8dc881..8e78dd9a9161ac09bc456d751deb1406ccb23e3a 100755 --- a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c +++ b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c @@ -478,7 +478,9 @@ rlc_um_segment_10 (rlc_um_entity_t *rlc_pP,frame_t frameP) pdu_tb_req_p->data_ptr = (unsigned char*)pdu_p; pdu_tb_req_p->tb_size = data_pdu_size - pdu_remaining_size; list_add_tail_eurecom (pdu_mem_p, &rlc_pP->pdus_to_mac_layer); - //rlc_util_print_hex_octets(RLC, pdu_mem_p->data, data_pdu_size); +#if defined(DEBUG_RLC_PAYLOAD) + rlc_util_print_hex_octets(RLC, pdu_mem_p->data, data_pdu_size); +#endif AssertFatal( pdu_tb_req_p->tb_size > 0 , "SEGMENT10: FINAL RLC UM PDU LENGTH %d", pdu_tb_req_p->tb_size); pdu_p = NULL; pdu_mem_p = NULL; @@ -915,8 +917,9 @@ rlc_um_segment_5 (rlc_um_entity_t *rlc_pP,frame_t frameP) pdu_tb_req_p->data_ptr = (unsigned char*)pdu_p; pdu_tb_req_p->tb_size = data_pdu_size - pdu_remaining_size; list_add_tail_eurecom (pdu_mem_p, &rlc_pP->pdus_to_mac_layer); +#if defined(DEBUG_RLC_PAYLOAD) rlc_util_print_hex_octets(RLC, (unsigned char*)pdu_mem_p->data, data_pdu_size); - +#endif AssertFatal( pdu_tb_req_p->tb_size > 0 , "SEGMENT5: FINAL RLC UM PDU LENGTH %d", pdu_tb_req_p->tb_size); pdu_p = NULL;