diff options
-rw-r--r-- | src/kernel/fat.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kernel/fat.c b/src/kernel/fat.c index b865859..e328f61 100644 --- a/src/kernel/fat.c +++ b/src/kernel/fat.c @@ -539,7 +539,6 @@ bool try_fat_init_drive(struct drive *d) { next_fi->sectors_per_fat * next_fi->fats; infos[next_id].data_start = infos[next_id].root_start + ((next_fi->root_entries - 1) >> 4) + 1; - logf(LOG_INFO, "0x%h <- 0x%h", &infos[next_id].from_drive, drives + n_drives); infos[next_id].from_drive = drives + n_drives; d->read_sectors(d, next_fi->reserved_sectors, next_fi->sectors_per_fat, infos[next_id].fat); @@ -555,10 +554,6 @@ bool try_fat_init_drive(struct drive *d) { void fat_ready_shutdown() { for (uint8_t i = 0; i < next_id; ++i) for (uint8_t j = 0; j < MAX_OPEN_FILES_PER_DRIVE; ++j) - if (infos[i].open_files[j].di_sector) { - logf(LOG_INFO, "i = %d, j = %d", i, j); - logf(LOG_INFO, "freeing file %d from drive 0x%h (number %d)", j + 1, infos[i].from_drive, infos[i].from_drive - drives + 1); - logf(LOG_INFO, "0x%h -> 0x%h", &infos[i].from_drive, infos[i].from_drive); + if (infos[i].open_files[j].di_sector) fat_free_file(infos[i].from_drive, j + 1); - } }
\ No newline at end of file |