forked from osmocom/wireshark
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).
This commit is contained in:
parent
e5bb8b4b08
commit
9c5ea50b0a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue