Skip to content

Commit 933c54c

Browse files
committed
update
1 parent 9f5878b commit 933c54c

File tree

1 file changed

+3
-3
lines changed
  • components/libc/compilers/common

1 file changed

+3
-3
lines changed

components/libc/compilers/common/stdlib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <rtthread.h>
1212

13-
#define ABORT_STATUS 2
13+
#define ABORT_STATUS 1
1414

1515
void __exit__(int status)
1616
{
@@ -27,11 +27,11 @@ void __exit__(int status)
2727
{
2828
if(status == ABORT_STATUS) /* abort() */
2929
{
30-
rt_kprintf("thread:%s abort!\n", RT_NAME_MAX, self->name);
30+
rt_kprintf("thread:%s abort!\n", self->name);
3131
}
3232
else /* exit() */
3333
{
34-
rt_kprintf("thread:%s exit:%d!\n", RT_NAME_MAX, self->name, status);
34+
rt_kprintf("thread:%s exit:%d!\n", self->name, status);
3535
}
3636
rt_thread_suspend(self);
3737
rt_schedule();

0 commit comments

Comments
 (0)