diff options
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c index 951e37f..24ec58f 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -40,6 +40,8 @@ void main() { ignore_already_open = true; + map_drives(); + init_log(); init_settings(); @@ -64,10 +66,15 @@ void main() { logf(LOG_INFO, ""); logf(LOG_INFO, "Drives:"); - for (uint8_t i = 0; i < n_drives; ++i) { - const struct drive *d = &drives[i]; + for (struct drive *d = drives; d < drives + n_drives; ++d) { const uint32_t free = d->get_free_sectors(d); - logf(LOG_INFO, " %s: %d%sk, %s (%d%sk free)", d->drive_type, d->n_sectors / 2, d->n_sectors % 2 ? ".5" : "", d->fs_type, free / 2, free % 2 ? ".5" : ""); + logf(LOG_INFO, " :%h:", d->uid); + logf(LOG_INFO, " %s (%d%skB free)", d->fs_type, free / 2, free % 2 ? ".5" : ""); + logf(LOG_INFO, " on %s (%d%skB)", d->drive_type, d->n_sectors / 2, d->n_sectors % 2 ? ".5" : ""); + if (d->mapped_to) + logf(LOG_INFO, " mapped to /%s", d->mapped_to); + else + logf(LOG_INFO, " not mapped"); } logf(LOG_INFO, ""); |