瀏覽代碼

fix: luat_log_dump打印时可能出现不正常的输出

Wendal Chen 2 年之前
父節點
當前提交
271282aa7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      luat/modules/luat_lib_log.c

+ 1 - 1
luat/modules/luat_lib_log.c

@@ -265,7 +265,7 @@ void luat_log_dump(const char* tag, void* ptr, size_t len) {
         return;
     }
     char buff[256] = {0};
-    char* ptr2 = ptr;
+    uint8_t* ptr2 = (uint8_t*)ptr;
     for (size_t i = 0; i < len; i++)
     {
         sprintf_(buff + strlen(buff), "%02X ", ptr2[i]);