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
This commit is contained in:
Jacob Erlbeck 2016-01-28 16:14:58 +01:00
parent 646da1ba8d
commit 81a04f7d79
1 changed files with 2 additions and 1 deletions

View File

@ -56,8 +56,9 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
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());