From 08cd1f7402c8763832bcc5788b50de239781f7f4 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 25 Sep 2011 09:40:21 +0800 Subject: [PATCH] Kernel/vfs - Minor error reporting changes --- Kernel/vfs/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Kernel/vfs/main.c b/Kernel/vfs/main.c index 1000df06..cb798c19 100644 --- a/Kernel/vfs/main.c +++ b/Kernel/vfs/main.c @@ -52,13 +52,14 @@ int VFS_Init(void) giVFS_DriverFileID = SysFS_RegisterFile("VFS/Drivers", NULL, 0); if( VFS_Mount("root", "/", "rootfs", "") != 0 ) { - Panic("Unable to mount root (Where the **** is rootfs?)"); + Log_KernelPanic("VFS", "Unable to mount root (Where the **** is rootfs?)"); return -1; } VFS_MkDir("/Devices"); VFS_MkDir("/Mount"); VFS_Mount("dev", "/Devices", "devfs", ""); - + + Log_Debug("VFS", "Setting max files"); CFGINT(CFG_VFS_MAXFILES) = 32; return 0; } -- 2.20.1