diff options
| author | liuxianliang <[email protected]> | 2021-04-12 11:20:11 +0800 |
|---|---|---|
| committer | liuxianliang <[email protected]> | 2021-04-12 11:20:11 +0800 |
| commit | 97432efadfa696d820f94c91d1480922f1b8d1e6 (patch) | |
| tree | 53b989417b6e8be201b9148ab9e2b3a7525620c3 /components/libc/compilers/common/time.c | |
| parent | f083c67f22ac6413fd163b19da841687dbb5e17e (diff) | |
| parent | 211b62aea73699e1822063b79f7eda1dd5b151ab (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one
Diffstat (limited to 'components/libc/compilers/common/time.c')
| -rw-r--r-- | components/libc/compilers/common/time.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 83b6ed5672..72aa8a42f4 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; } |
