mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
components: correct printf() placeholder for time_t
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
This commit is contained in:
@@ -107,8 +107,8 @@ void app_main(void)
|
||||
struct timeval outdelta;
|
||||
while (sntp_get_sync_status() == SNTP_SYNC_STATUS_IN_PROGRESS) {
|
||||
adjtime(NULL, &outdelta);
|
||||
ESP_LOGI(TAG, "Waiting for adjusting time ... outdelta = %li sec: %li ms: %li us",
|
||||
(long)outdelta.tv_sec,
|
||||
ESP_LOGI(TAG, "Waiting for adjusting time ... outdelta = %jd sec: %li ms: %li us",
|
||||
(intmax_t)outdelta.tv_sec,
|
||||
outdelta.tv_usec/1000,
|
||||
outdelta.tv_usec%1000);
|
||||
vTaskDelay(2000 / portTICK_PERIOD_MS);
|
||||
|
Reference in New Issue
Block a user