forked from acouzens/open5gs
[TLV] Added more debug information (#1767)
This commit is contained in:
parent
3ad74923c1
commit
c2f6a020a7
|
@ -461,7 +461,11 @@ ogs_tlv_t *ogs_tlv_parse_block(uint32_t length, void *data, uint8_t mode)
|
||||||
ogs_assert(pos);
|
ogs_assert(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
ogs_assert(length == (pos - blk));
|
if (length != (pos - blk)) {
|
||||||
|
ogs_fatal("ogs_tlv_parse_block() failed[LEN:%d,MODE:%d]", length, mode);
|
||||||
|
ogs_log_hexdump(OGS_LOG_FATAL, data, length);
|
||||||
|
ogs_assert_if_reached();
|
||||||
|
}
|
||||||
|
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue