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-k12.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-k12.c')
-rw-r--r-- | epan/dissectors/packet-k12.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c index 5948e5fcd4..26c5287835 100644 --- a/epan/dissectors/packet-k12.c +++ b/epan/dissectors/packet-k12.c @@ -258,13 +258,10 @@ dissect_k12(tvbuff_t* tvb,packet_info* pinfo,proto_tree* tree) } if (handles == data_handles) { - proto_tree* stack_tree = proto_item_add_subtree(stack_item,ett_stack_item); + proto_tree* stack_tree = proto_item_add_subtree(stack_item, ett_stack_item); proto_item* item; - item = proto_tree_add_text(stack_tree,tvb,0,0, - "Warning: stk file not matched in the 'K12 Protocols' table"); - PROTO_ITEM_SET_GENERATED(item); - expert_add_info(pinfo, item, &ei_k12_unmatched_stk_file); + expert_add_info(pinfo, stack_item, &ei_k12_unmatched_stk_file); item = proto_tree_add_text(stack_tree,tvb,0,0, "Info: You can edit the 'K12 Protocols' table from Preferences->Protocols->k12xx"); @@ -435,7 +432,7 @@ proto_register_k12(void) }; static ei_register_info ei[] = { - { &ei_k12_unmatched_stk_file, { "k12.unmatched_stk_file", PI_UNDECODED, PI_WARN, "unmatched stk file", EXPFILL }}, + { &ei_k12_unmatched_stk_file, { "k12.unmatched_stk_file", PI_UNDECODED, PI_WARN, "Warning: stk file not matched in the 'K12 Protocols' table", EXPFILL }}, }; static uat_field_t uat_k12_flds[] = { |