diff options
author | Michael Mann <mmann78@netscape.net> | 2013-09-16 10:39:06 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-09-16 10:39:06 +0000 |
commit | 346f803d42ac477109e02df2578eb8c86ccf4c4f (patch) | |
tree | 4277e1e48aeb6d492ceb835af645460070fb04ec /epan/dissectors/packet-igap.c | |
parent | 58e4750ecbf593fb678c713da398979b7fb2ed5d (diff) | |
download | wireshark-346f803d42ac477109e02df2578eb8c86ccf4c4f.tar.gz |
Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if hf_ field name is the first part of the formatted string. This was all manual inspection and most cases were either:
1. Case sensitivity differences between hf_ field name and formatted string.
2. Unnecessary whitespace between hf_ field name and colon in formatted string
There are cases where the hf_ field name doesn't quite match the proto_tree_add_uint_format, but it's close enough that one of them should be "right", I'm just not sure which is, I just know the string in proto_tree_add_uint_format is the one displayed.
svn path=/trunk/; revision=52098
Diffstat (limited to 'epan/dissectors/packet-igap.c')
-rw-r--r-- | epan/dissectors/packet-igap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-igap.c b/epan/dissectors/packet-igap.c index a83c62765e..13ff8e1c7d 100644 --- a/epan/dissectors/packet-igap.c +++ b/epan/dissectors/packet-igap.c @@ -154,8 +154,8 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int off offset += 1; tsecs = tvb_get_guint8(tvb, offset); - proto_tree_add_uint_format(tree, hf_max_resp, tvb, offset, 1, tsecs, - "Max Response Time: %.1f sec (0x%02x)", tsecs * 0.1, tsecs); + proto_tree_add_uint_format_value(tree, hf_max_resp, tvb, offset, 1, tsecs, + "%.1f sec (0x%02x)", tsecs * 0.1, tsecs); offset += 1; igmp_checksum(tree, tvb, hf_checksum, hf_checksum_bad, pinfo, 0); @@ -260,8 +260,8 @@ proto_register_igap(void) }, { &hf_max_resp, - { "Max Resp Time", "igap.max_resp", FT_UINT8, BASE_DEC, - NULL, 0, "Max Response Time", HFILL } + { "Max Response Time", "igap.max_resp", FT_UINT8, BASE_DEC, + NULL, 0, NULL, HFILL } }, { &hf_checksum, |