[PATCH] openbsc[master]: libmsc: Fix VTY output for handover counters.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Alexander Chemeris gerrit-no-reply at lists.osmocom.org
Sat Jul 8 09:04:41 UTC 2017


Review at  https://gerrit.osmocom.org/3159

libmsc: Fix VTY output for handover counters.

Handover countrs belong to BSC, but we mistakenly take values from MSC counters.

Change-Id: I9512330f2e91d2f526751c5228e6e8e0fe17d579
---
M openbsc/src/libmsc/vty_interface_layer3.c
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/59/3159/1

diff --git a/openbsc/src/libmsc/vty_interface_layer3.c b/openbsc/src/libmsc/vty_interface_layer3.c
index e503291..042da9c 100644
--- a/openbsc/src/libmsc/vty_interface_layer3.c
+++ b/openbsc/src/libmsc/vty_interface_layer3.c
@@ -833,11 +833,11 @@
 		VTY_NEWLINE);
 	vty_out(vty, "Handover                : %lu attempted, %lu no_channel, %lu timeout, "
 		"%lu completed, %lu failed%s",
-		net->msc_ctrs->ctr[BSC_CTR_HANDOVER_ATTEMPTED].current,
-		net->msc_ctrs->ctr[BSC_CTR_HANDOVER_NO_CHANNEL].current,
-		net->msc_ctrs->ctr[BSC_CTR_HANDOVER_TIMEOUT].current,
-		net->msc_ctrs->ctr[BSC_CTR_HANDOVER_COMPLETED].current,
-		net->msc_ctrs->ctr[BSC_CTR_HANDOVER_FAILED].current,
+		net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_ATTEMPTED].current,
+		net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_NO_CHANNEL].current,
+		net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_TIMEOUT].current,
+		net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_COMPLETED].current,
+		net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_FAILED].current,
 		VTY_NEWLINE);
 	vty_out(vty, "SMS MO                  : %lu submitted, %lu no receiver%s",
 		net->msc_ctrs->ctr[MSC_CTR_SMS_SUBMITTED].current,

-- 
To view, visit https://gerrit.osmocom.org/3159
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9512330f2e91d2f526751c5228e6e8e0fe17d579
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Alexander Chemeris <Alexander.Chemeris at gmail.com>



More information about the gerrit-log mailing list