Преглед изворни кода

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);
     // note: if this thread is joinable then after giving back s_threads_mux