Sfoglia il codice sorgente

[libc][time] add debug tag

Meco Man 4 anni fa
parent
commit
a584b8ba6b
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      components/libc/compilers/common/time.c

+ 5 - 1
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