mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
[libc][syscalls]将在libc初始化之前调用printf的行为下调为警告级别
This commit is contained in:
@@ -31,8 +31,8 @@ size_t __read(int handle, unsigned char *buf, size_t len)
|
||||
#ifdef RT_USING_POSIX
|
||||
if (libc_stdio_get_console() < 0)
|
||||
{
|
||||
LOG_E("invoke standard input before initializing libc");
|
||||
return _LLIO_ERROR;
|
||||
LOG_W("Do not invoke standard input before initializing libc");
|
||||
return 0;
|
||||
}
|
||||
return read(STDIN_FILENO, buf, len);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user