From 33c050791fae998f975022865af050c1079cfe9d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 8 Sep 2020 09:49:26 +0200 Subject: [PATCH] pdu: add missing to_string() content for MAC SCH PDU subheaders * add both scell activation CE * add rnti to CRNTI and CONT RES CE --- lib/src/mac/pdu.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/src/mac/pdu.cc b/lib/src/mac/pdu.cc index 40c266c72..e6989df73 100644 --- a/lib/src/mac/pdu.cc +++ b/lib/src/mac/pdu.cc @@ -899,7 +899,7 @@ std::string sch_subh::to_string() if (parent->is_ul()) { switch ((ul_sch_lcid)lcid) { case ul_sch_lcid::CRNTI: - ss << "CRNTI:"; + ss << "CRNTI: rnti=0x" << std::hex << get_c_rnti() << std::dec; break; case ul_sch_lcid::PHR_REPORT: ss << "PHR: ph=" << get_phr(); @@ -931,11 +931,15 @@ std::string sch_subh::to_string() } else { switch ((dl_sch_lcid)lcid) { case dl_sch_lcid::CON_RES_ID: - ss << "CON_RES: id=" << get_con_res_id(); + ss << "CON_RES: id=0x" << std::hex << get_con_res_id() << std::dec; break; case dl_sch_lcid::TA_CMD: ss << "TA: ta=" << get_ta_cmd(); break; + case dl_sch_lcid::SCELL_ACTIVATION_4_OCTET: + case dl_sch_lcid::SCELL_ACTIVATION: + ss << "SCELL_ACT"; + break; case dl_sch_lcid::DRX_CMD: ss << "DRX"; break;