forked from espressif/esp-mqtt
components: correct printf() placeholder for time_t
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
This commit is contained in:
committed by
Euripedes Rocha
parent
a88eaebad9
commit
77e41479d7
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user