From 62f428bc4702d691b130b6a35a6ec3c76d75fe35 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Fri, 27 Jan 2012 18:14:59 +0100 Subject: [PATCH] proper use of log macros in lte-rlc.cc --- src/lte/model/lte-rlc.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lte/model/lte-rlc.cc b/src/lte/model/lte-rlc.cc index 73b9b7eb8..ee27277d2 100644 --- a/src/lte/model/lte-rlc.cc +++ b/src/lte/model/lte-rlc.cc @@ -202,7 +202,10 @@ LteRlcSm::DoReceivePdu (Ptr p) { delay = Simulator::Now() - rlcTag.GetSenderTimestamp (); } - NS_LOG_FUNCTION (this << m_rnti << (uint32_t) m_lcid << p->GetSize () << delay.GetNanoSeconds ()); + NS_LOG_LOGIC (" RNTI=" << m_rnti + << " LCID=" << (uint32_t) m_lcid + << " size=" << p->GetSize () + << " delay=" << delay.GetNanoSeconds ()); m_rxPdu(m_rnti, m_lcid, p->GetSize (), delay.GetNanoSeconds () ); } @@ -218,7 +221,9 @@ LteRlcSm::DoNotifyTxOpportunity (uint32_t bytes) // RLC Performance evaluation RlcTag tag (Simulator::Now()); params.pdu->AddByteTag (tag); - NS_LOG_FUNCTION (this << m_rnti << (uint32_t) m_lcid << bytes); + NS_LOG_LOGIC (" RNTI=" << m_rnti + << " LCID=" << (uint32_t) m_lcid + << " size=" << bytes); m_txPdu(m_rnti, m_lcid, bytes); m_macSapProvider->TransmitPdu (params);