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-iapp.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-iapp.c')
-rw-r--r-- | epan/dissectors/packet-iapp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-iapp.c b/epan/dissectors/packet-iapp.c index 660edded1b..1330bf5452 100644 --- a/epan/dissectors/packet-iapp.c +++ b/epan/dissectors/packet-iapp.c @@ -427,8 +427,8 @@ dissect_iapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_uint(iapp_tree, hf_iapp_version, tvb, 0, 1, ih.ia_version); - proto_tree_add_uint_format(iapp_tree, hf_iapp_type, tvb, 1, 1, - ih.ia_type, "Type: %s(%d)", codestrval, ia_type); + proto_tree_add_uint_format_value(iapp_tree, hf_iapp_type, tvb, 1, 1, + ih.ia_type, "%s(%d)", codestrval, ia_type); pdutf = proto_tree_add_text(iapp_tree, tvb, 2, -1, "Protocol data units"); @@ -459,7 +459,7 @@ proto_register_iapp(void) { "Version", "iapp.version", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL } }, { &hf_iapp_type, - { "type", "iapp.type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL } + { "Type", "iapp.type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL } }, }; |