* Add PDU debug flags to CMakeLists.txt for PDCP, RLC, and RLC-MAC
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7771 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -55,7 +55,6 @@ extern boolean_t pdcp_data_ind(
|
||||
//#define TRACE_RLC_PAYLOAD 1
|
||||
#define DEBUG_RLC_DATA_REQ 1
|
||||
|
||||
#if defined(TRACE_RLC_PAYLOAD)
|
||||
//-----------------------------------------------------------------------------
|
||||
void rlc_util_print_hex_octets(comp_name_t componentP, unsigned char* dataP, const signed long sizeP)
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -102,7 +101,7 @@ void rlc_util_print_hex_octets(comp_name_t componentP, unsigned char* dataP, con
|
||||
|
||||
LOG_T(componentP, " |\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
rlc_op_status_t rlc_stat_req (
|
||||
const protocol_ctxt_t* const ctxt_pP,
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "assertions.h"
|
||||
#include "UTIL/LOG/vcd_signal_dumper.h"
|
||||
|
||||
#define DEBUG_MAC_INTERFACE 1
|
||||
//#define DEBUG_MAC_INTERFACE 1
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
struct mac_data_ind mac_rlc_deserialize_tb (
|
||||
@@ -80,10 +80,8 @@ struct mac_data_ind mac_rlc_deserialize_tb (
|
||||
memcpy(((struct mac_tb_ind *) (tb_p->data))->data_ptr, &buffer_pP[tbs_size], tb_sizeP);
|
||||
|
||||
#ifdef DEBUG_MAC_INTERFACE
|
||||
#if defined(TRACE_RLC_PAYLOAD)
|
||||
LOG_T(RLC, "[MAC-RLC] DUMP RX PDU(%d bytes):\n", tb_sizeP);
|
||||
rlc_util_print_hex_octets(RLC, ((struct mac_tb_ind *) (tb_p->data))->data_ptr, tb_sizeP);
|
||||
#endif
|
||||
#endif
|
||||
nb_tb_read = nb_tb_read + 1;
|
||||
tbs_size = tbs_size + tb_sizeP;
|
||||
@@ -114,10 +112,8 @@ tbs_size_t mac_rlc_serialize_tb (char* buffer_pP, list_t transport_blocksP)
|
||||
if (tb_p != NULL) {
|
||||
tb_size = ((struct mac_tb_req *) (tb_p->data))->tb_size;
|
||||
#ifdef DEBUG_MAC_INTERFACE
|
||||
#if defined(TRACE_RLC_PAYLOAD)
|
||||
LOG_T(RLC, "[MAC-RLC] DUMP TX PDU(%d bytes):\n", tb_size);
|
||||
rlc_util_print_hex_octets(RLC, ((struct mac_tb_req *) (tb_p->data))->data_ptr, tb_size);
|
||||
#endif
|
||||
#endif
|
||||
memcpy(&buffer_pP[tbs_size], &((struct mac_tb_req *) (tb_p->data))->data_ptr[0], tb_size);
|
||||
tbs_size = tbs_size + tb_size;
|
||||
|
||||
Reference in New Issue
Block a user