packet-ehdlc: Fix TEI in COL_INFO

Back in 2017, commit d7bab0b46e introduced
printing the TEI in COL_INFO.  Unfortunatelky it contained a typo and
stated "TEI:1%u" instead of "TEI:%u".  So TEI 0 became TEI 10, etc. -
causing some confusion.

Let's remote that extraneous '1' and at the same time print the sapi
with two digits for better alignment of multiple lines. It is a
two-digit decimal value (0..63).


(cherry picked from commit 9c5ea50b0a)
This commit is contained in:
Harald Welte 2020-11-30 19:14:02 +00:00 committed by Pascal Quantin
parent 29e59a0e20
commit 970e9bfb2c
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ dissect_ehdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U
tei = tei_from_ctei(ctei);
/* Add TEI to INFO column */
col_append_fstr(pinfo->cinfo, COL_INFO, " | TEI:1%u | ", tei);
col_append_fstr(pinfo->cinfo, COL_INFO, " | TEI:%02u | ", tei);
col_set_fence(pinfo->cinfo, COL_INFO);
if (tree) {