[TLV] Added more debug information (#1767)

This commit is contained in:
Sukchan Lee 2022-09-25 09:17:23 +09:00
parent 3ad74923c1
commit c2f6a020a7
1 changed files with 5 additions and 1 deletions

View File

@ -461,7 +461,11 @@ ogs_tlv_t *ogs_tlv_parse_block(uint32_t length, void *data, uint8_t mode)
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;
}