mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[libc][syscalls]将在libc初始化之前调用printf的行为下调为警告级别
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user