diff --git a/src/esp_littlefs.c b/src/esp_littlefs.c index 185706d..1802aab 100644 --- a/src/esp_littlefs.c +++ b/src/esp_littlefs.c @@ -1771,7 +1771,11 @@ static int vfs_littlefs_ftruncate(void *ctx, int fd, off_t size) } else { +#ifndef CONFIG_LITTLEFS_USE_ONLY_HASH ESP_LOGV( TAG, "Truncated file %s to %u bytes", file->path, (unsigned int) size ); +#else + ESP_LOGV(TAG, "Truncated FD %d to %u bytes", fd, (unsigned int) size ); +#endif } return res;