提交 b4040df9 编写于 作者: mysterywolf's avatar mysterywolf

[libc][time][bug] LOG_W will cause a recursive printing if ulog timestamp function is turned on

上级 b2f23f2a
......@@ -224,7 +224,8 @@ RT_WEAK time_t time(time_t *t)
if(time_now == (time_t)-1)
{
LOG_W("Cannot find a RTC device to provide time!");
/* LOG_W will cause a recursive printing if ulog timestamp function is turned on */
rt_kprintf("Cannot find a RTC device to provide time!\r\n");
errno = ENOSYS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册