Parcourir la source

Merge branch 'contrib/github_pr_9361' into 'master'

Change placeholder in ESP_LOGD conditionally depending on FF_FS_EXFAT (GitHub PR)

Closes IDFGH-7832 and IDFGH-7735

See merge request espressif/esp-idf!19111
Martin Vychodil il y a 3 ans
Parent
commit
8def7b3e55
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      components/fatfs/vfs/vfs_fat.c

+ 4 - 0
components/fatfs/vfs/vfs_fat.c

@@ -576,7 +576,11 @@ static off_t vfs_fat_lseek(void* ctx, int fd, off_t offset, int mode)
         return -1;
     }
 
+#if FF_FS_EXFAT
+    ESP_LOGD(TAG, "%s: offset=%ld, filesize:=%lld", __func__, new_pos, f_size(file));
+#else
     ESP_LOGD(TAG, "%s: offset=%ld, filesize:=%d", __func__, new_pos, f_size(file));
+#endif
     FRESULT res = f_lseek(file, new_pos);
     if (res != FR_OK) {
         ESP_LOGD(TAG, "%s: fresult=%d", __func__, res);