volume_id: more fat debugging

This commit is contained in:
Kay Sievers
2008-10-06 18:17:05 +02:00
parent 1e75cda345
commit 6a328058e0
+3 -3
View File
@@ -348,9 +348,9 @@ magic:
dbg("sect_count 0x%x\n", sect_count);
fat_length = le16_to_cpu(vs->fat_length);
dbg("fat_length 0x%x\n", fat_length);
info("fat_length 0x%x\n", fat_length);
fat32_length = le32_to_cpu(vs->type.fat32.fat32_length);
dbg("fat32_length 0x%x\n", fat32_length);
info("fat32_length 0x%x\n", fat32_length);
if (fat_length)
fat_size = fat_length * vs->fats;
@@ -362,7 +362,7 @@ magic:
dir_size = ((dir_entries * sizeof(struct vfat_dir_entry)) +
(sector_size-1)) / sector_size;
dbg("dir_size 0x%x\n", dir_size);
info("dir_size 0x%x\n", dir_size);
cluster_count = sect_count - (reserved + fat_size + dir_size);
cluster_count /= vs->sectors_per_cluster;