diff options
| author | Meco Man <[email protected]> | 2021-02-17 00:27:24 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-17 00:27:24 +0800 |
| commit | 933c54c668b8a9480a3f03c9ba3437763396a9cc (patch) | |
| tree | 65d14b68153de4956038fcb7795f96e15e072da0 | |
| parent | 9f5878b2fbdf90afb9c92dc40d99b79905b2b158 (diff) | |
update
| -rw-r--r-- | components/libc/compilers/common/stdlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/libc/compilers/common/stdlib.c b/components/libc/compilers/common/stdlib.c index 022342aea9..45a65e9c96 100644 --- a/components/libc/compilers/common/stdlib.c +++ b/components/libc/compilers/common/stdlib.c @@ -10,7 +10,7 @@ #include <rtthread.h> -#define ABORT_STATUS 2 +#define ABORT_STATUS 1 void __exit__(int status) { @@ -27,11 +27,11 @@ void __exit__(int status) { if(status == ABORT_STATUS) /* abort() */ { - rt_kprintf("thread:%s abort!\n", RT_NAME_MAX, self->name); + rt_kprintf("thread:%s abort!\n", self->name); } else /* exit() */ { - rt_kprintf("thread:%s exit:%d!\n", RT_NAME_MAX, self->name, status); + rt_kprintf("thread:%s exit:%d!\n", self->name, status); } rt_thread_suspend(self); rt_schedule(); |
