mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
aaf35889b6
In case of using EXFAT by setting in ffconf.h: the type FSIZE_t is changing from 4 to 8 bytes. As a result, ESP_LOGD() in vfs_fat_lseek() does not compile: error: format '%d' expects argument of type 'int', but argument 8 has type 'FSIZE_t' {aka 'long long unsigned int'} [-Werror=format=] ESP_LOGD(TAG, "%s: offset=%ld, filesize:=%d", __func__, new_pos, f_size(file)); To solve the problem we need to change %d with %lld conditionally, depending on FF_FS_EXFAT. Closes https://github.com/espressif/esp-idf/pull/9361 |
||
---|---|---|
.. | ||
esp_vfs_fat.h | ||
vfs_fat_internal.h | ||
vfs_fat_sdmmc.c | ||
vfs_fat_spiflash.c | ||
vfs_fat.c |