tbf: Mark control slots in VTY TBF out
Put an '!' after the PDCH number in the output of the 'show tbf'
command, if is_control_ts() yields true.
Sponsored-by: On-Waves ehf
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index a8b5ddd..6567962 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -56,8 +56,9 @@
VTY_NEWLINE);
vty_out(vty, " TS_alloc=");
for (int i = 0; i < 8; i++) {
+ bool is_ctrl = tbf->is_control_ts(i);
if (tbf->pdch[i])
- vty_out(vty, "%d ", i);
+ vty_out(vty, "%d%s ", i, is_ctrl ? "!" : "");
}
vty_out(vty, " CS=%s WS=%d",
tbf->current_cs().name(), tbf->window()->ws());