Explorar o código

bugfix(pthread): fixed log related warning

Zim Kalinowski %!s(int64=2) %!d(string=hai) anos
pai
achega
1f3aec2e67
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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