ext2: remove debug function
This commit is contained in:
parent
1fa16f1a15
commit
2e438081cf
1 changed files with 0 additions and 18 deletions
18
fs/ext2.c
18
fs/ext2.c
|
|
@ -77,22 +77,6 @@ int ext2_read_inode(struct ext2fs *fs, struct ext2_inode *out, size_t inode_no)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void ext2_print_root_ino(struct ext2fs *fs)
|
||||
{
|
||||
struct ext2_inode root_inode;
|
||||
ext2_read_inode(fs, &root_inode, EXT2_ROOT_INO);
|
||||
|
||||
kprintf(LOG_DEBUG "root inode: %d\n", EXT2_ROOT_INO);
|
||||
kprintf(LOG_DEBUG "root inode size: %d\n", root_inode.size);
|
||||
kprintf(LOG_DEBUG "root inode blocks: %d\n", root_inode.blocks);
|
||||
kprintf(LOG_DEBUG "root inode block[0]: %d\n", root_inode.block[0]);
|
||||
kprintf(LOG_DEBUG "root inode block[1]: %d\n", root_inode.block[1]);
|
||||
kprintf(LOG_DEBUG "root inode block[2]: %d\n", root_inode.block[2]);
|
||||
kprintf(LOG_DEBUG "root inode block[3]: %d\n", root_inode.block[3]);
|
||||
kprintf(LOG_DEBUG "root inode block[4]: %d\n", root_inode.block[4]);
|
||||
kprintf(LOG_DEBUG "root inode block[5]: %d\n", root_inode.block[5]);
|
||||
}
|
||||
|
||||
struct ext2fs *ext2_init_fs(struct block_device *bdev)
|
||||
{
|
||||
struct ext2fs *ret = kmalloc(sizeof(*ret), ALLOC_KERN);
|
||||
|
|
@ -109,7 +93,5 @@ struct ext2fs *ext2_init_fs(struct block_device *bdev)
|
|||
|
||||
bdev->fs = ret;
|
||||
|
||||
ext2_print_root_ino(ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue