components: correct printf() placeholder for time_t

Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
This commit is contained in:
Anton Maklakov
2022-02-22 12:42:56 +07:00
parent b57fc93585
commit e27f1331e4
6 changed files with 9 additions and 9 deletions

View File

@@ -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);