From 5321558a25ae3ada73cbdcf19bd7ef1aa1a61935 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 1 Nov 2023 15:33:44 -0400 Subject: [PATCH] vfs: add ifdef guards for debug messages --- fs/vfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/vfs.c b/fs/vfs.c index f072d2a..41748f1 100644 --- a/fs/vfs.c +++ b/fs/vfs.c @@ -273,7 +273,9 @@ void vfs_init(const char *rootdev_name) panic(); } +#ifdef KDEBUG kprintf(LOG_DEBUG "Found root device %s\n", rootdev_name); +#endif /* TODO: detect filesystem type */ /* for now, assume ext2 */ @@ -282,7 +284,9 @@ void vfs_init(const char *rootdev_name) kprintf(LOG_ERROR "Failed to mount root device %s\n", rootdev_name); panic(); } else { +#ifdef KDEBUG kprintf(LOG_DEBUG "Mounted root device %s\n", rootdev_name); +#endif } fs->mount_point = kzalloc(2, ALLOC_KERN);