mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Replace all asserts in kernel code with ASSERT
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f25a506f91
commit
20ebe0e64c
@@ -44,18 +44,18 @@ static void checkcorruption_handler(FAR struct mm_allocnode_s *node,
|
||||
|
||||
if (MM_NODE_IS_ALLOC(node))
|
||||
{
|
||||
assert(nodesize >= MM_SIZEOF_ALLOCNODE);
|
||||
ASSERT(nodesize >= MM_SIZEOF_ALLOCNODE);
|
||||
}
|
||||
else
|
||||
{
|
||||
FAR struct mm_freenode_s *fnode = (FAR void *)node;
|
||||
|
||||
assert(nodesize >= MM_MIN_CHUNK);
|
||||
assert(fnode->blink->flink == fnode);
|
||||
assert(MM_SIZEOF_NODE(fnode->blink) <= nodesize);
|
||||
assert(fnode->flink == NULL ||
|
||||
ASSERT(nodesize >= MM_MIN_CHUNK);
|
||||
ASSERT(fnode->blink->flink == fnode);
|
||||
ASSERT(MM_SIZEOF_NODE(fnode->blink) <= nodesize);
|
||||
ASSERT(fnode->flink == NULL ||
|
||||
fnode->flink->blink == fnode);
|
||||
assert(fnode->flink == NULL ||
|
||||
ASSERT(fnode->flink == NULL ||
|
||||
MM_SIZEOF_NODE(fnode->flink) == 0 ||
|
||||
MM_SIZEOF_NODE(fnode->flink) >= nodesize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user