diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-12-18 11:53:03 -0500 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-12-18 17:02:39 +0000 |
commit | 71d13b30afa5744a6cff8c67611458d184e5952c (patch) | |
tree | 87b6d563fba951707dfe44d9ac08e0d77ea175e3 | |
parent | f299f73684b77065e319a1c7affff8225abf2137 (diff) | |
download | wireshark-71d13b30afa5744a6cff8c67611458d184e5952c.tar.gz |
proto.c: Add hint to 'DISSECTOR_ASSERT(hf->bitmask != 0)' to show field name.
Change-Id: Ie578a73742901c1837802da17c0aaf2e58d48c6f
Reviewed-on: https://code.wireshark.org/review/5835
Reviewed-by: Bill Meier <wmeier@newsguy.com>
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index e583ca1c1e..eef7ab8f2b 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -7510,7 +7510,7 @@ proto_item_add_bitmask_tree(proto_item *item, tvbuff_t *tvb, const int offset, while (*fields) { guint64 present_bits; PROTO_REGISTRAR_GET_NTH(**fields,hf); - DISSECTOR_ASSERT(hf->bitmask != 0); + DISSECTOR_ASSERT_HINT(hf->bitmask != 0, hf->abbrev); /* Skip fields that aren't fully present */ present_bits = available_bits & hf->bitmask; |