1
0
Fork 0
forked from len0rd/rockbox

Little fix, when debug is disabled clusterchain length was incorrectly computed

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6163 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jean-Philippe Bernardy 2005-03-07 14:38:30 +00:00
parent c71db259dc
commit d1c459c746

View file

@ -1782,8 +1782,10 @@ int fat_closewrite(struct fat_file *file, long size, int attr)
long len;
long next;
for ( next = file->firstcluster; next;
next = get_next_cluster(IF_MV2(fat_bpb,) next) )
LDEBUGF("cluster %ld: %lx\n", count++, next);
next = get_next_cluster(IF_MV2(fat_bpb,) next) ) {
LDEBUGF("cluster %ld: %lx\n", count, next);
count++;
}
len = count * fat_bpb->bpb_secperclus * SECTOR_SIZE;
LDEBUGF("File is %ld clusters (chainlen=%ld, size=%ld)\n",
count, len, size );