From 553bec65bab1b29317a4a2882af9e36bcf92aafd Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Tue, 28 May 2013 03:11:44 +0000 Subject: Batch of filterable expert infos. This (mostly) completes the non-ASN.1 list of (built-in) dissectors that only had a small handful of add_expert_info_format calls. svn path=/trunk/; revision=49602 --- epan/dissectors/packet-x25.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'epan/dissectors/packet-x25.c') diff --git a/epan/dissectors/packet-x25.c b/epan/dissectors/packet-x25.c index ab7579a559..67bcee451c 100644 --- a/epan/dissectors/packet-x25.c +++ b/epan/dissectors/packet-x25.c @@ -220,6 +220,8 @@ static gint hf_x25_icrd = -1; static gint hf_x25_reg_confirm_cause = -1; static gint hf_x25_reg_confirm_diagnostic = -1; +static expert_field ei_x25_facility_length = EI_INIT; + static const value_string vals_modulo[] = { { 1, "8" }, { 2, "128" }, @@ -828,7 +830,7 @@ dump_facilities(proto_tree *tree, int *offset, tvbuff_t *tvb, packet_info *pinfo int i; if ((byte1 < 4) || (byte1 % 4)) { - expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_WARN, "Bogus length"); + expert_add_info(pinfo, ti, &ei_x25_facility_length); return; } for (i = 0; (i