arm_createstack: fix warning for tc32 compiler.
fix warning: common/arm_createstack.c: In function 'up_create_stack': common/arm_createstack.c:154:11: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
parent
45beda286b
commit
6caa8f1075
@ -151,7 +151,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
||||
|
||||
if (!tcb->stack_alloc_ptr)
|
||||
{
|
||||
serr("ERROR: Failed to allocate stack, size %d\n", stack_size);
|
||||
serr("ERROR: Failed to allocate stack, size %zu\n", stack_size);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user