Browse Source

bugfix(pthread): fixed log related warning

Zim Kalinowski 2 years ago
parent
commit
1f3aec2e67
1 changed files with 1 additions and 1 deletions
  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