assert: fix build break.
misc/assert.c: In function 'show_tasks': Error: misc/assert.c:411:10: error: format '%p' expects argument of type 'void *', but argument 3 has type 'uintptr_t' {aka 'long unsigned int'} [-Werror=format=] 411 | _alert(" ---- ---" | ^~~~~~~~~~~~~~ ...... 424 | , up_get_intstackbase() | ~~~~~~~~~~~~~~~~~~~~~ | | | uintptr_t {aka long unsigned int} Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
8101978765
commit
19f87e88b9
@ -329,7 +329,7 @@ static void dump_task(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
#ifdef CONFIG_SMP
|
||||
" %4d"
|
||||
#endif
|
||||
" %p"
|
||||
" 0x%08" PRIxPTR
|
||||
" %7zu"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %7zu %3zu.%1zu%%%c"
|
||||
@ -342,7 +342,7 @@ static void dump_task(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
#ifdef CONFIG_SMP
|
||||
, tcb->cpu
|
||||
#endif
|
||||
, tcb->stack_base_ptr
|
||||
, (uintptr_t)tcb->stack_base_ptr
|
||||
, tcb->adj_stack_size
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, up_check_tcbstack(tcb)
|
||||
@ -412,7 +412,7 @@ static void show_tasks(void)
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
" %p"
|
||||
" 0x%08" PRIxPTR
|
||||
" %7u"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7zu %3zu.%1zu%%%c"
|
||||
|
Loading…
Reference in New Issue
Block a user