diff options
Diffstat (limited to 'components/libc/compilers/common/time.c')
| -rw-r--r-- | components/libc/compilers/common/time.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 71755b8bbb..92a14e2d96 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -113,16 +113,14 @@ static rt_err_t get_timeval(struct timeval *tv) } else { - /* LOG_W will cause a recursive printing if ulog timestamp function is enabled */ - rt_kprintf(_WARNING_NO_RTC); + LOG_W(_WARNING_NO_RTC); return -RT_ENOSYS; } return rst; #else - /* LOG_W will cause a recursive printing if ulog timestamp function is enabled */ - rt_kprintf(_WARNING_NO_RTC); + LOG_W(_WARNING_NO_RTC); return -RT_ENOSYS; #endif /* RT_USING_RTC */ } |
