aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs
diff options
context:
space:
mode:
authorMarvin Borner2020-04-15 22:03:14 +0200
committerMarvin Borner2020-04-15 22:03:14 +0200
commitfc26e84ef8c6255926811fe639e3e466b756e581 (patch)
treea1308c6f32ea37e6fe714dab7dbe6818aae27d73 /src/kernel/fs
parentd549c18ac15d531bcdb067180d1d895cf952b59f (diff)
Added even more colors!
Diffstat (limited to 'src/kernel/fs')
-rw-r--r--src/kernel/fs/ata.c2
-rw-r--r--src/kernel/fs/ext2/ext2.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/fs/ata.c b/src/kernel/fs/ata.c
index 96cc270..817bb98 100644
--- a/src/kernel/fs/ata.c
+++ b/src/kernel/fs/ata.c
@@ -269,7 +269,7 @@ void ata_device_detect(ata_dev_t *dev, int primary)
pci_write_field(ata_device, PCI_COMMAND, pci_command_reg);
}
- log("Detected drive: %d", dev->drive);
+ log("Detected drive: %s", dev->mountpoint);
vfs_mount(dev->mountpoint, create_ata_device(dev));
}
diff --git a/src/kernel/fs/ext2/ext2.c b/src/kernel/fs/ext2/ext2.c
index 5fcc929..b14d726 100644
--- a/src/kernel/fs/ext2/ext2.c
+++ b/src/kernel/fs/ext2/ext2.c
@@ -765,6 +765,7 @@ void ext2_init(char *device_path, char *mountpoint)
ext2fs->sb = kmalloc(SUPERBLOCK_SIZE);
ext2fs->block_size = 1024;
read_disk_block(ext2fs, 1, (void *)ext2fs->sb);
+ log("%x", ext2fs->sb->ext2_magic);
ext2fs->block_size = (1024 << ext2fs->sb->log2block_size);
ext2fs->blocks_per_group = ext2fs->sb->blocks_per_group;
ext2fs->inodes_per_group = ext2fs->sb->inodes_per_group;
@@ -786,4 +787,4 @@ void ext2_init(char *device_path, char *mountpoint)
inode_t *root_inode = kcalloc(sizeof(inode_t), 1);
read_inode_metadata(ext2fs, root_inode, ROOT_INODE_NUMBER);
vfs_mount(mountpoint, get_ext2_root(ext2fs, root_inode));
-} \ No newline at end of file
+}