Procházet zdrojové kódy

[libc][time] add debug tag

Meco Man před 4 roky
rodič
revize
a584b8ba6b
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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