summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-09-22 17:48:18 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-09-23 06:56:07 +0000
commit02904e206f9f080ba1cbc7d5b4b8daff8388cfb7 (patch)
tree62e0a5094f7746be77112d1a99c72d57e43e0737
parent0dd2a0a3efa658758eab59a8704c752c94cac4c0 (diff)
downloadwireshark-02904e206f9f080ba1cbc7d5b4b8daff8388cfb7.tar.gz
RLC: fix invalid RLC AM control type expert info
Change-Id: I43512e24a0f506b65521b7bc53acf00be58d6c2b Reviewed-on: https://code.wireshark.org/review/10608 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> (cherry picked from commit eefae1bef66b08c9b7ea751f9c5bc7528234b0cf) Reviewed-on: https://code.wireshark.org/review/10620
-rw-r--r--epan/dissectors/packet-rlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c
index 993210b6cf..ab79333d0f 100644
--- a/epan/dissectors/packet-rlc.c
+++ b/epan/dissectors/packet-rlc.c
@@ -2153,7 +2153,7 @@ dissect_rlc_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_append_fstr(pinfo->cinfo, COL_INFO, " RSN=%u HFN=%u", (guint16)rsn, (guint32)hfn);
break;
default:
- expert_add_info(pinfo, ti, &ei_rlc_ctrl_type);
+ expert_add_info_format(pinfo, ti, &ei_rlc_ctrl_type, "Invalid RLC AM control type %u", type);
return; /* invalid */
}
}
@@ -2949,7 +2949,7 @@ proto_register_rlc(void)
{ &ei_rlc_sufi_cw, { "rlc.sufi.cw.invalid", PI_PROTOCOL, PI_WARN, "Invalid last codeword", EXPFILL }},
{ &ei_rlc_sufi_type, { "rlc.sufi.type.invalid", PI_PROTOCOL, PI_WARN, "Invalid SUFI type", EXPFILL }},
{ &ei_rlc_reserved_bits_not_zero, { "rlc.reserved_bits_not_zero", PI_PROTOCOL, PI_WARN, "reserved bits not zero", EXPFILL }},
- { &ei_rlc_ctrl_type, { "rlc.ctrl_pdu_type.invalid", PI_PROTOCOL, PI_WARN, "Invalid RLC AM control type %u", EXPFILL }},
+ { &ei_rlc_ctrl_type, { "rlc.ctrl_pdu_type.invalid", PI_PROTOCOL, PI_WARN, "Invalid RLC AM control type", EXPFILL }},
{ &ei_rlc_he, { "rlc.he.invalid", PI_PROTOCOL, PI_WARN, "Incorrect HE value", EXPFILL }},
};