Răsfoiți Sursa

change: 微调日志前缀

Wendal Chen 4 ani în urmă
părinte
comite
88c506178e

+ 1 - 1
luat/cmsis_os2/luat_timer_cmsis_os2.c

@@ -7,7 +7,7 @@
 #include "FreeRTOS.h"
 #include "task.h"
 
-#define LUAT_LOG_TAG "luat.timer"
+#define LUAT_LOG_TAG "timer"
 #include "luat_log.h"
 
 #define FREERTOS_TIMER_COUNT 32

+ 1 - 1
luat/freertos/luat_timer_freertos.c

@@ -8,7 +8,7 @@
 #include "task.h"
 #include "timers.h"
 
-#define LUAT_LOG_TAG "luat.timer"
+#define LUAT_LOG_TAG "timer"
 #include "luat_log.h"
 
 #define FREERTOS_TIMER_COUNT 32

+ 1 - 0
luat/modules/luat_lib_gpio.c

@@ -2,6 +2,7 @@
 /*
 @module  gpio
 @summary GPIO操作
+@catalog 外设API
 @version 1.0
 @date    2020.03.30
 */

+ 2 - 2
luat/rtt/luat_crypto_rtt.c

@@ -4,7 +4,7 @@
 
 #include "rtthread.h"
 
-#define LUAT_LOG_TAG "luat.crypto"
+#define LUAT_LOG_TAG "crypto"
 #include "luat_log.h"
 
 #ifdef RT_USING_HWCRYPTO
@@ -287,7 +287,7 @@ _exit:
 #endif
 #include "mbedtls/md5.h"
 
-#define LUAT_LOG_TAG "luat.crypto"
+#define LUAT_LOG_TAG "crypto"
 #include "luat_log.h"
 
 void luat_crypto_HmacSha1(const unsigned char *input, int ilen, unsigned char *output,const unsigned char *key, int keylen);

+ 1 - 1
luat/rtt/luat_disp_rtt.c

@@ -5,7 +5,7 @@
 #ifdef PKG_USING_U8G2
 #include "u8g2_port.h"
 
-#define LUAT_LOG_TAG "luat.disp"
+#define LUAT_LOG_TAG "disp"
 #include "luat_log.h"
 
 uint8_t luat_u8x8_gpio_and_delay(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);

+ 1 - 1
luat/rtt/luat_fs_rtt.c

@@ -2,7 +2,7 @@
 #include "luat_base.h"
 #include "luat_fs.h"
 
-#define LUAT_LOG_TAG "luat.fs.LFS"
+#define LUAT_LOG_TAG "fs.LFS"
 #include "luat_log.h"
 
 #include "rtthread.h"

+ 1 - 1
luat/rtt/luat_http_rtt.c

@@ -2,7 +2,7 @@
 #include "luat_base.h"
 #include "luat_http.h"
 #include "luat_malloc.h"
-#define LUAT_LOG_TAG "luat.http"
+#define LUAT_LOG_TAG "http"
 #include "luat_log.h"
 
 #include "rtthread.h"

+ 1 - 1
luat/rtt/luat_lib_wlan.c

@@ -25,7 +25,7 @@
 #include "oneshot.h"
 #endif
 
-#define LUAT_LOG_TAG "luat.wlan"
+#define LUAT_LOG_TAG "wlan"
 #include "luat_log.h"
 
 /*

+ 1 - 1
luat/rtt/luat_msh_rtt.c

@@ -5,7 +5,7 @@
 #include "luat_timer.h"
 #include "luat_gpio.h"
 
-#define LUAT_LOG_TAG "luat.msh"
+#define LUAT_LOG_TAG "msh"
 #include "luat_log.h"
 
 #include "luat_dbg.h"

+ 1 - 1
luat/rtt/luat_netclient_rtt.c

@@ -37,7 +37,7 @@
 #include "netclient.h"
 #include "luat_malloc.h"
 
-#define LUAT_LOG_TAG "luat.netc"
+#define LUAT_LOG_TAG "netc"
 #include "luat_log.h"
 
 #define BUFF_SIZE (1024)

+ 1 - 1
luat/rtt/luat_spi_rtt.c

@@ -12,7 +12,7 @@
 #include "drv_gpio.h"
 #endif
 
-#define LUAT_LOG_TAG "luat.spi"
+#define LUAT_LOG_TAG "spi"
 #include "luat_log.h"
 
 #ifdef RT_USING_SPI

+ 1 - 1
luat/weak/luat_malloc_weak.c

@@ -7,7 +7,7 @@
 #include "bget.h"
 #include "luat_malloc.h"
 
-#define LUAT_LOG_TAG "luat.vmheap"
+#define LUAT_LOG_TAG "vmheap"
 #include "luat_log.h"
 
 #define LUAT_WEAK                     __attribute__((weak))