From a7f27a604d680a53a532f23b093ac737c689a14b Mon Sep 17 00:00:00 2001 From: Mike Gerow Date: Fri, 5 Jun 2015 00:38:13 -0700 Subject: [PATCH] Cleaned up debug_print calls --- kernel/fs/vfs.c | 8 ++++---- modules/ext2.c | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/fs/vfs.c b/kernel/fs/vfs.c index bdb7fd4d..82f80489 100644 --- a/kernel/fs/vfs.c +++ b/kernel/fs/vfs.c @@ -385,7 +385,7 @@ int symlink_fs(char * target, char * name) { f_path--; } - debug_print(WARNING, "creating symlink %s within %s", f_path, parent_path); + debug_print(NOTICE, "creating symlink %s within %s", f_path, parent_path); parent = kopen(parent_path, 0); free(parent_path); @@ -825,8 +825,8 @@ fs_node_t *kopen_recur(char *filename, uint32_t flags, uint32_t symlink_depth, c unsigned int depth = 0; /* Find the mountpoint for this file */ fs_node_t *node_ptr = get_mount_point(path, path_depth, &path_offset, &depth); - debug_print(CRITICAL, "path_offset: %s", path_offset); - debug_print(CRITICAL, "depth: %d", depth); + debug_print(INFO, "path_offset: %s", path_offset); + debug_print(INFO, "depth: %d", depth); if (!node_ptr) return NULL; @@ -857,7 +857,7 @@ fs_node_t *kopen_recur(char *filename, uint32_t flags, uint32_t symlink_depth, c /* This ensures we don't return a path when NOFOLLOW is requested but PATH * isn't passed. */ - debug_print(CRITICAL, "resolving symlink at %s", node_ptr->name); + debug_print(NOTICE, "resolving symlink at %s", node_ptr->name); if ((flags & O_NOFOLLOW) && depth == path_depth - 1) { /* TODO(gerow): should probably be setting errno from this */ debug_print(NOTICE, "Refusing to follow final entry for open with O_NOFOLLOW for %s.", node_ptr->name); diff --git a/modules/ext2.c b/modules/ext2.c index 4af64be8..a92bdb68 100644 --- a/modules/ext2.c +++ b/modules/ext2.c @@ -1254,10 +1254,8 @@ static struct dirent * readdir_ext2(fs_node_t *node, uint32_t index) { } static void symlink_ext2(fs_node_t * parent, char * target, char * name) { - debug_print(CRITICAL, "symlink_ext2 got called"); if (!name) return; - debug_print(CRITICAL, "we're actually doing shit"); ext2_fs_t * this = parent->device; /* first off, check if it exists */