diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 83b6ed56726199e4e275ea85b5c0c381bd815418..72aa8a42f484fe4172966f2fd9d387f21f87186a 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -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; }