Cleaning up more Log( calls with Log_*(
authorJohn Hodge <[email protected]>
Tue, 6 Apr 2010 15:42:40 +0000 (23:42 +0800)
committerJohn Hodge <[email protected]>
Tue, 6 Apr 2010 15:42:40 +0000 (23:42 +0800)
- TODO: Move the module load messages to Log_Notice instead of Log_Log

Kernel/Makefile.BuildNum
Kernel/arch/x86/main.c
Kernel/system.c

index 093dcc6..2453f86 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 1800
+BUILD_NUM = 1802
index 8660343..fa3cb45 100644 (file)
@@ -70,22 +70,22 @@ int kmain(Uint MbMagic, void *MbInfoPtr)
        MM_InstallVirtual();    // Clean up virtual address space
        Heap_Install();         // Create initial heap
        
-       Log("Starting Multitasking...");
+       //Log_Log("Arch", "Starting Multitasking...");
        // Start Multitasking
        Threads_Init();
        
        // Start Timers
        Time_Setup();
        
-       Log("Starting VFS...");
+       Log_Log("Arch", "Starting VFS...");
        // Load Virtual Filesystem
        VFS_Init();
        
        // Initialise builtin modules
-       Log("Initialising builtin modules...");
+       Log_Log("Arch", "Initialising builtin modules...");
        Modules_LoadBuiltins();
        
-       Log("Loading %i Modules...", mbInfo->ModuleCount);
+       Log_Log("Arch", "Loading %i Modules...", mbInfo->ModuleCount);
        
        // Load initial modules
        mods = (void*)( mbInfo->Modules + KERNEL_BASE );
@@ -96,16 +96,16 @@ int kmain(Uint MbMagic, void *MbInfoPtr)
                mods[i].End += KERNEL_BASE;
                mods[i].String += KERNEL_BASE;
                
-               Log("Loading '%s'", mods[i].String);
+               Log_Log("Arch", "Loading '%s'", mods[i].String);
                
                if( !Module_LoadMem( (void *)mods[i].Start, mods[i].End-mods[i].Start, (char *)mods[i].String ) )
                {
-                       Log_Warning("ARCH", "Unable to load module\n");
+                       Log_Warning("Arch", "Unable to load module\n");
                }
        }
        
        // Pass on to Independent Loader
-       Log("Loading Configuration...");
+       Log_Log("Arch", "Starting system");
        System_Init( gsBootCmdLine );
        
        // Sleep forever (sleeping beauty)
index f913918..a720add 100644 (file)
@@ -533,6 +533,7 @@ tConfigFile *System_Int_ParseFile(char *FileData)
                        // Quoted
                        if( *ptr == '"' ) {
                                ptr ++;
+                               ret->Lines[i].Parts[j] = ptr;
                                while( *ptr && !(*ptr == '"' && ptr[-1] == '\\') && *ptr != '\n' )
                                        ptr++;
                        }

UCC git Repository :: git.ucc.asn.au