diff options
author | Michael Mann <mmann78@netscape.net> | 2013-07-03 02:59:31 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-07-03 02:59:31 +0000 |
commit | 98492c561948b8d08c8c39e61a6f2c8b31cb344f (patch) | |
tree | c87f8e4302c3e9172a21a320e9e9e56baa301b21 /epan/dissectors/packet-mux27010.c | |
parent | fdead4df94f6cd253c6768369805732f35a7d9e2 (diff) |
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'epan/dissectors/packet-mux27010.c')
-rw-r--r-- | epan/dissectors/packet-mux27010.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-mux27010.c b/epan/dissectors/packet-mux27010.c index 3b37e672d1..ba89506c4e 100644 --- a/epan/dissectors/packet-mux27010.c +++ b/epan/dissectors/packet-mux27010.c @@ -919,10 +919,8 @@ dissect_mux27010(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) msg_flag = tvb_get_guint8(tvb, tmpOffset); tmpOffset += 1; if (msg_end <= msg_start) { - proto_item *pi; - pi = proto_tree_add_text(field_tree, tvb, tmpOffset-3, 2, - "Message start and end are illogical, aborting dissection"); - expert_add_info(pinfo, pi, &ei_mux27010_message_illogical); + proto_tree_add_expert(field_tree, pinfo, &ei_mux27010_message_illogical, + tvb, tmpOffset-3, 2); continue; } @@ -1395,7 +1393,7 @@ proto_register_mux27010 (void) }; static ei_register_info ei[] = { - { &ei_mux27010_message_illogical, { "mux27010.message_illogical", PI_MALFORMED, PI_ERROR, "Message start and end are illogical", EXPFILL }}, + { &ei_mux27010_message_illogical, { "mux27010.message_illogical", PI_MALFORMED, PI_ERROR, "Message start and end are illogical, aborting dissection", EXPFILL }}, { &ei_mux27010_checksum_incorrect, { "mux27010.checksum_incorrect", PI_CHECKSUM, PI_WARN, "Checksum: incorrect", EXPFILL }}, }; |