forked from osmocom/wireshark
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>
This commit is contained in:
parent
f299f73684
commit
71d13b30af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue