From 7655b0c2b1bf9cdb287653553e5af1ec3c283f35 Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Tue, 29 Oct 2013 16:52:45 +0000 Subject: [PATCH] Added Origin task name in PDCP debug log. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4298 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- common/utils/itti/intertask_interface.h | 6 ++++-- openair2/LAYER2/PDCP_v10.1.0/pdcp.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/utils/itti/intertask_interface.h b/common/utils/itti/intertask_interface.h index 64e0f76ef28..66a6e1118ad 100644 --- a/common/utils/itti/intertask_interface.h +++ b/common/utils/itti/intertask_interface.h @@ -44,8 +44,10 @@ #include "intertask_interface_conf.h" #include "intertask_interface_types.h" -#define ITTI_MSG_NAME(mSGpTR) itti_get_message_name((mSGpTR)->header.messageId) -#define ITTI_MSG_INSTANCE(mSGpTR) (mSGpTR)->header.instance +#define ITTI_MSG_NAME(mSGpTR) itti_get_message_name((mSGpTR)->header.messageId) +#define ITTI_MSG_ORIGIN_NAME(mSGpTR) itti_get_task_name((mSGpTR)->header.originTaskId) +#define ITTI_MSG_DESTINATION_NAME(mSGpTR) itti_get_task_name((mSGpTR)->header.destinationTaskId) +#define ITTI_MSG_INSTANCE(mSGpTR) (mSGpTR)->header.instance /* Make the message number platform specific */ typedef unsigned long message_number_t; diff --git a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c index f09be1fb0e8..aa671367924 100755 --- a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c +++ b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c @@ -508,7 +508,8 @@ void pdcp_run (u32_t frame, u8 eNB_flag, u8 UE_index, u8 eNB_index) { switch (msg_p->header.messageId) { case RRC_DCCH_DATA_REQ: - LOG_D(PDCP, "Received %s: instance %d, frame %d, eNB_flag %d, rb_id %d, muiP %d, confirmP %d, mode %d\n", msg_name, instance, + LOG_D(PDCP, "Received %s from %s: instance %d, frame %d, eNB_flag %d, rb_id %d, muiP %d, confirmP %d, mode %d\n", + msg_name, ITTI_MSG_ORIGIN_NAME(msg_p), instance, RRC_DCCH_DATA_REQ (msg_p).frame, RRC_DCCH_DATA_REQ (msg_p).enb_flag, RRC_DCCH_DATA_REQ (msg_p).rb_id, RRC_DCCH_DATA_REQ (msg_p).muip, RRC_DCCH_DATA_REQ (msg_p).confirmp, RRC_DCCH_DATA_REQ (msg_p).mode); -- GitLab