aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_meas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs_rlcmac_meas.cpp')
-rw-r--r--src/gprs_rlcmac_meas.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/gprs_rlcmac_meas.cpp b/src/gprs_rlcmac_meas.cpp
index b9a324fb..a3d891cc 100644
--- a/src/gprs_rlcmac_meas.cpp
+++ b/src/gprs_rlcmac_meas.cpp
@@ -11,10 +11,6 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
extern "C" {
@@ -128,8 +124,8 @@ int gprs_rlcmac_received_lost(struct gprs_rlcmac_dl_tbf *tbf, uint16_t received,
if (!sum)
return -EINVAL;
- LOGP(DRLCMACMEAS, LOGL_DEBUG, "DL Loss of TLLI 0x%08x: Received: %4d "
- "Lost: %4d Sum: %4d\n", tbf->tlli(), received, lost, sum);
+ LOGP(DRLCMACMEAS, LOGL_DEBUG, "%s DL Loss: Received: %4d Lost: %4d Sum: %4d\n",
+ tbf_name(dl_tbf_as_tbf_const(tbf)), received, lost, sum);
tbf->m_bw.dl_loss_received += received;
tbf->m_bw.dl_loss_lost += lost;
@@ -158,9 +154,8 @@ int gprs_rlcmac_lost_rep(struct gprs_rlcmac_dl_tbf *tbf)
if (!sum)
return -EINVAL;
- LOGP(DRLCMACMEAS, LOGL_DEBUG, "DL packet loss of IMSI=%s / TLLI=0x%08x: "
- "%d%%\n", tbf->imsi(), tbf->tlli(),
- tbf->m_bw.dl_loss_lost * 100 / sum);
+ LOGP(DRLCMACMEAS, LOGL_DEBUG, "%s DL packet loss: %d%%\n",
+ tbf_name(dl_tbf_as_tbf_const(tbf)), tbf->m_bw.dl_loss_lost * 100 / sum);
return 0;
}
@@ -183,8 +178,8 @@ int gprs_rlcmac_dl_bw(struct gprs_rlcmac_dl_tbf *tbf, uint16_t octets)
return 0;
tbf->m_bw.dl_throughput = (tbf->m_bw.dl_bw_octets << 10) / ((elapsed.tv_sec << 10) + (elapsed.tv_nsec >> 20));
- LOGP(DRLCMACMEAS, LOGL_INFO, "DL Bandwitdh of IMSI=%s / TLLI=0x%08x: "
- "%d KBits/s\n", tbf->imsi(), tbf->tlli(), tbf->m_bw.dl_throughput);
+ LOGP(DRLCMACMEAS, LOGL_INFO, "%s DL Bandwitdh: %d KBits/s\n",
+ tbf_name(dl_tbf_as_tbf_const(tbf)), tbf->m_bw.dl_throughput);
/* reset bandwidth values timestamp */
memcpy(bw_tv, &now_tv, sizeof(*bw_tv));