Skip to content

Commit ed17e1e

Browse files
committed
Rlc: fix non-unique names given to Tx entities
Fix copied from Rx entity creation
1 parent 1e4d808 commit ed17e1e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/simu5g/stack/rlc/um/LteRlcUm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ UmTxEntity *LteRlcUm::getTxBuffer(inet::Ptr<FlowControlInfo> lteInfo)
5656
// Not found: create
5757
std::stringstream buf;
5858

59-
buf << "UmTxEntity Lcid: " << lcid;
59+
buf << "UmTxEntity Lcid: " << lcid << " cid: " << cid.asPackedInt();
6060
cModuleType *moduleType = cModuleType::get("simu5g.stack.rlc.um.UmTxEntity");
6161
UmTxEntity *txEnt = check_and_cast<UmTxEntity *>(moduleType->createScheduleInit(buf.str().c_str(), getParentModule()));
6262
txEntities_[cid] = txEnt; // Add to tx_entities map

src/simu5g/stack/rlc/um/LteRlcUmD2D.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ UmTxEntity *LteRlcUmD2D::getTxBuffer(inet::Ptr<FlowControlInfo> lteInfo)
3737
MacNodeId d2dPeer = NODEID_NONE;
3838
std::stringstream buf;
3939

40-
buf << "UmTxEntity Lcid: " << lcid;
40+
buf << "UmTxEntity Lcid: " << lcid << " cid: " << cid.asPackedInt();
4141
cModuleType *moduleType = cModuleType::get("simu5g.stack.rlc.um.UmTxEntity");
4242
UmTxEntity *txEnt = check_and_cast<UmTxEntity *>(moduleType->createScheduleInit(buf.str().c_str(), getParentModule()));
4343
txEntities_[cid] = txEnt; // Add to tx_entities map

0 commit comments

Comments
 (0)