From 346f803d42ac477109e02df2578eb8c86ccf4c4f Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 16 Sep 2013 10:39:06 +0000 Subject: 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 --- epan/dissectors/packet-clnp.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'epan/dissectors/packet-clnp.c') diff --git a/epan/dissectors/packet-clnp.c b/epan/dissectors/packet-clnp.c index 5fefc60725..4497c41545 100644 --- a/epan/dissectors/packet-clnp.c +++ b/epan/dissectors/packet-clnp.c @@ -332,10 +332,8 @@ dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * No checksum present, or not enough of the header present to * checksum it. */ - proto_tree_add_uint_format(clnp_tree, hf_clnp_checksum, tvb, + proto_tree_add_uint(clnp_tree, hf_clnp_checksum, tvb, P_CLNP_CKSUM, 2, - cnf_cksum, - "Checksum : 0x%04x", cnf_cksum); break; @@ -343,10 +341,10 @@ dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Checksum is correct. */ - proto_tree_add_uint_format(clnp_tree, hf_clnp_checksum, tvb, + proto_tree_add_uint_format_value(clnp_tree, hf_clnp_checksum, tvb, P_CLNP_CKSUM, 2, cnf_cksum, - "Checksum : 0x%04x (correct)", + "0x%04x (correct)", cnf_cksum); break; @@ -354,10 +352,10 @@ dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Checksum is not correct. */ - proto_tree_add_uint_format(clnp_tree, hf_clnp_checksum, tvb, + proto_tree_add_uint_format_value(clnp_tree, hf_clnp_checksum, tvb, P_CLNP_CKSUM, 2, cnf_cksum, - "Checksum : 0x%04x (incorrect)", + "0x%04x (incorrect)", cnf_cksum); break; } -- cgit v1.2.3