summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-06-21 17:47:13 -0400
committerBenji Dial <benji6283@gmail.com>2021-06-21 17:47:13 -0400
commitf57e2eabe0a10c9732c83532e01654a499fb8dcf (patch)
treecbf91a23fcdd65e0ea7ed55b0940ca7042d59bef /src/kernel/main.c
parent83835306d57461205a7bcfef9f4c3e06bc504006 (diff)
downloadportland-os-f57e2eabe0a10c9732c83532e01654a499fb8dcf.tar.gz
many, many changes; settings is broken
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c13
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, "");