瀏覽代碼

bugfix(pthread): fixed log related warning

Zim Kalinowski 2 年之前
父節點
當前提交
1f3aec2e67
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/pthread/pthread.c

+ 1 - 1
components/pthread/pthread.c

@@ -442,7 +442,7 @@ void pthread_exit(void *value_ptr)
         }
         }
     }
     }
 
 
-    ESP_LOGD(TAG, "Task stk_wm = %d", uxTaskGetStackHighWaterMark(NULL));
+    ESP_LOGD(TAG, "Task stk_wm = %d", (int)uxTaskGetStackHighWaterMark(NULL));
 
 
     xSemaphoreGive(s_threads_mux);
     xSemaphoreGive(s_threads_mux);
     // note: if this thread is joinable then after giving back s_threads_mux
     // note: if this thread is joinable then after giving back s_threads_mux