From 43693f88c79467b741b3f899799082e791656d1b Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 2 Mar 2021 23:25:10 -0500 Subject: making unnecessary old log statements from FAT driver --- src/kernel/fat.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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 -- cgit v1.2.3