We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ee1f4f + 7b91fe4 commit 6a3e827Copy full SHA for 6a3e827
FAT/fs_fat.c
@@ -5684,9 +5684,8 @@ static void FS_FAT_ChkFile (FS_VOL *p_vol,
5684
5685
#if (FS_TRACE_LEVEL >= TRACE_LEVEL_INFO)
5686
if (end_of_file == DEF_NO) { /* If EOF not found, too many clus's in chain ... */
5687
- if ((file_size != 0) || (file_clus_tot != 0)) { /* Skip misleading message for 0-byte files w/o cluster */
+ if ((file_size != 0) && (file_clus_tot != 0)) { /* Skip misleading message for 0-byte files w/o cluster */
5688
FS_TRACE_INFO(("FS_FAT_ChkFile(): Extra clusters linked to file.\r\n"));
5689
- /* ... #### del extra clus's. */
5690
}
5691
5692
#endif
0 commit comments