summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-02 23:25:10 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-02 23:25:10 -0500
commit43693f88c79467b741b3f899799082e791656d1b (patch)
tree463f92d73662910d66fd02be5aa4561d09115f33 /src
parent9e139934499797e987d0e45acb8c184c5f101903 (diff)
downloadportland-os-43693f88c79467b741b3f899799082e791656d1b.tar.gz
making unnecessary old log statements from FAT driver
Diffstat (limited to 'src')
-rw-r--r--src/kernel/fat.c7
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