Quellcode durchsuchen

add:精简日志头,填个名让esp32开心

Dozingfiretruck vor 4 Jahren
Ursprung
Commit
c9d98f738a
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      components/sfud/sfud_port.c

+ 3 - 1
components/sfud/sfud_port.c

@@ -31,7 +31,7 @@
 
 #include "luat_spi.h"
 
-#define LUAT_LOG_TAG "luat.sfud"
+#define LUAT_LOG_TAG "sfud"
 #include "luat_log.h"
 
 static char log_buf[256];
@@ -121,6 +121,8 @@ sfud_err sfud_spi_port_init(sfud_flash *flash) {
     /* 60 seconds timeout */
     flash->retry.times = 60 * 10000;
 
+    flash->name = "LuatOS-sfud";
+
     return result;
 }