We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5878b commit 933c54cCopy full SHA for 933c54c
components/libc/compilers/common/stdlib.c
@@ -10,7 +10,7 @@
10
11
#include <rtthread.h>
12
13
-#define ABORT_STATUS 2
+#define ABORT_STATUS 1
14
15
void __exit__(int status)
16
{
@@ -27,11 +27,11 @@ void __exit__(int status)
27
28
if(status == ABORT_STATUS) /* abort() */
29
30
- rt_kprintf("thread:%s abort!\n", RT_NAME_MAX, self->name);
+ rt_kprintf("thread:%s abort!\n", self->name);
31
}
32
else /* exit() */
33
34
- rt_kprintf("thread:%s exit:%d!\n", RT_NAME_MAX, self->name, status);
+ rt_kprintf("thread:%s exit:%d!\n", self->name, status);
35
36
rt_thread_suspend(self);
37
rt_schedule();
0 commit comments