summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-03-28 10:32:20 +0800
committerMeco Man <[email protected]>2021-03-28 10:33:13 +0800
commita584b8ba6b6f137480e47eead44d40938e8e6774 (patch)
treeb9d60890cbb18487364b9bdbeeab73356831b760
parent1ba020f3c89fbf2ac2a5b58424852e501fd59a91 (diff)
[libc][time] add debug tag
-rw-r--r--components/libc/compilers/common/time.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 286a173347..83b6ed5672 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -21,11 +21,15 @@
#include <sys/time.h>
#include <rtthread.h>
-#include <rtdbg.h>
+
#ifdef RT_USING_DEVICE
#include <rtdevice.h>
#endif
+#define DBG_TAG "TIME"
+#define DBG_LVL DBG_INFO
+#include <rtdbg.h>
+
/* seconds per day */
#define SPD 24*60*60