summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/syscall_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/compilers/dlib/syscall_write.c')
-rw-r--r--components/libc/compilers/dlib/syscall_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_write.c b/components/libc/compilers/dlib/syscall_write.c
index bd7cc83d99..ffee51882d 100644
--- a/components/libc/compilers/dlib/syscall_write.c
+++ b/components/libc/compilers/dlib/syscall_write.c
@@ -36,8 +36,8 @@ size_t __write(int handle, const unsigned char *buf, size_t len)
#ifdef RT_USING_POSIX
if (libc_stdio_get_console() < 0)
{
- LOG_E("invoke standard output before initializing libc");
- return _LLIO_ERROR;
+ LOG_W("Do not invoke standard output before initializing libc");
+ return 0;
}
return write(STDOUT_FILENO, (void*)buf, len);
#else