aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-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;
}
}