aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-25 09:07:12 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-25 09:08:52 +0700
commit7a95af61fe4ce705a7fc9dee43ead1ea2f1bec6d (patch)
tree502c26f89637a82cf8a3703657b81ca377e44b8a /src/common/vty.c
parent4ded469b0fa222aca4e1742f2b6f2b0edda668aa (diff)
vty: fix bts_dump_vty_features(): properly check BTS model flags
bts_internal_flag_get() expects a flag value, not an integer. Change-Id: I88de79cc45fb64144df33b0ac3e3b91537039953
Diffstat (limited to 'src/common/vty.c')
-rw-r--r--src/common/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/vty.c b/src/common/vty.c
index d5993d66..36b0eaf3 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -848,9 +848,9 @@ static void bts_dump_vty_features(struct vty *vty, struct gsm_bts *bts)
vty_out(vty, " BTS model specific (internal) flags:%s", VTY_NEWLINE);
for (i = 0, no_features = true; i < sizeof(bts->flags) * 8; i++) {
- if (bts_internal_flag_get(bts, i)) {
+ if (bts_internal_flag_get(bts, (1 << i))) {
vty_out(vty, " %03u ", i);
- vty_out(vty, "%-40s%s", get_value_string(bts_impl_flag_desc, i), VTY_NEWLINE);
+ vty_out(vty, "%-40s%s", get_value_string(bts_impl_flag_desc, (1 << i)), VTY_NEWLINE);
no_features = false;
}
}