diff options
author | Michael Mann <mmann78@netscape.net> | 2013-09-30 15:21:09 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-09-30 15:21:09 +0000 |
commit | cf804429123802edb55003ebfd21ebea5718d10b (patch) | |
tree | d2a468c4f0aeb706413a6c50c2e12026673a6b34 /epan/dissectors/packet-ansi_a.c | |
parent | 2211ab0fba17d71cc25f6b0d026f04d241bbced1 (diff) |
Convert some proto_tree_add_string_format calls to something more appropriate.
There seem to be several cases of proto_tree_add_string_format where a "string" value/filter doesn't really make sense because it's always empty, and is just being used as a "filterable subtree header (placeholder)". They appear to be more for "presense" than "value" and should probably be FT_NONE, although I'd almost argue for removing the filter in favor of proto_tree_add_text.
svn path=/trunk/; revision=52296
Diffstat (limited to 'epan/dissectors/packet-ansi_a.c')
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index f07fd4c3aa..45b4589ed9 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -1976,11 +1976,11 @@ elem_mid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 offset curr_offset += len - (curr_offset - offset); - proto_tree_add_string_format(tree, + proto_tree_add_string_format_value(tree, hf_ansi_a_meid, tvb, offset + 1, len - 1, a_bigbuf, - "MEID: %s", + "%s", a_bigbuf); g_snprintf(add_string, string_len, " - %s (%s)", |