From 02904e206f9f080ba1cbc7d5b4b8daff8388cfb7 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Tue, 22 Sep 2015 17:48:18 +0200 Subject: RLC: fix invalid RLC AM control type expert info Change-Id: I43512e24a0f506b65521b7bc53acf00be58d6c2b Reviewed-on: https://code.wireshark.org/review/10608 Reviewed-by: Pascal Quantin Petri-Dish: Pascal Quantin Reviewed-by: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann (cherry picked from commit eefae1bef66b08c9b7ea751f9c5bc7528234b0cf) Reviewed-on: https://code.wireshark.org/review/10620 --- epan/dissectors/packet-rlc.c | 4 ++-- 1 file 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 }}, }; -- cgit v1.2.1