From baa83912e3ba3c5146342eb7e1e30f56b462587f Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 18 Mar 2015 09:22:46 -0400 Subject: Eliminate decode_bitfield_value from "public" use. This "encourages" (forces) dissectors to use the bitmask field of the header_field_info structure to get "bitmask formatting" of a field. other_decode_bitfield_value should be treated the same (eventually eliminated), but there are still replacements to be made in the dissectors. Change-Id: I8a0d829c3fef2d5e5a588667a259e231bca559e6 Reviewed-on: https://code.wireshark.org/review/7736 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/proto.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'epan/proto.c') diff --git a/epan/proto.c b/epan/proto.c index d22e41539a..cbc761c0e5 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -3334,6 +3334,17 @@ proto_tree_set_boolean(field_info *fi, guint64 value) proto_tree_set_uint64(fi, value); } +static char * +decode_bitfield_value(char *buf, const guint64 val, const guint64 mask, const int width) +{ + char *p; + + p = other_decode_bitfield_value(buf, val, mask, width); + p = g_stpcpy(p, " = "); + + return p; +} + /* Add a FT_FLOAT to a proto_tree */ proto_item * proto_tree_add_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, -- cgit v1.2.3