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
2025-09-19 18:51:40 +08:00
committed by Rocha Euripedes
parent 6b188eab14
commit 0edf4bee23
+1 -1
View File
@@ -30,7 +30,7 @@ static void test_leak_setup(const char * file, long line)
struct timeval te;
gettimeofday(&te, NULL); // get current time
esp_read_mac(mac, ESP_MAC_WIFI_STA);
printf("%s:%ld: time=%ld.%lds, mac:" MACSTR "\n", file, line, te.tv_sec, te.tv_usec, MAC2STR(mac));
printf("%s:%ld: time=%jd.%lds, mac:" MACSTR "\n", file, line, (intmax_t)te.tv_sec, te.tv_usec, MAC2STR(mac));
test_utils_record_free_mem();
}