From: John Hodge Date: Sat, 26 Nov 2011 13:51:16 +0000 (+0800) Subject: Kernel - Removed some unneeded logging statements X-Git-Tag: rel0.14~67 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=551e294246b4861b705904101a2130d4f8dda5c1;p=tpg%2Facess2.git Kernel - Removed some unneeded logging statements --- diff --git a/Kernel/arch/x86/vm8086.c b/Kernel/arch/x86/vm8086.c index 589d9a73..879cec64 100644 --- a/Kernel/arch/x86/vm8086.c +++ b/Kernel/arch/x86/vm8086.c @@ -79,13 +79,13 @@ int VM8086_Install(char **Arguments) // Set Image Name Threads_SetName("VM8086"); - Log_Debug("VM8086", "Mapping memory"); +// Log_Debug("VM8086", "Mapping memory"); // Map ROM Area for(i=0xA0;i<0x100;i++) { MM_Map( i * 0x1000, i * 0x1000 ); } - Log_Debug("VM8086", "ROM area mapped"); +// Log_Debug("VM8086", "ROM area mapped"); MM_Map( 0, 0 ); // IVT / BDA // Map (but allow allocation) of 0x1000 - 0x9F000 // - So much hack, it isn't funny @@ -102,7 +102,7 @@ int VM8086_Install(char **Arguments) gVM8086_WorkerPID = 0; Threads_Exit(0, 1); } - Log_Debug("VM8086", "Mapped low memory"); +// Log_Debug("VM8086", "Mapped low memory"); *(Uint8*)(0x100000) = VM8086_OP_IRET; *(Uint8*)(0x100001) = 0x07; // POP ES @@ -148,7 +148,7 @@ int VM8086_Install(char **Arguments) } gVM8086_WorkerPID = pid; - Log_Log("VM8086", "gVM8086_WorkerPID = %i", pid); +// Log_Log("VM8086", "gVM8086_WorkerPID = %i", pid); while( gpVM8086_State != NULL ) Threads_Yield(); // Yield to allow the child to initialise @@ -170,7 +170,7 @@ void VM8086_GPF(tRegs *Regs) && Threads_GetPID() == gVM8086_WorkerPID) { if( gpVM8086_State == (void*)-1 ) { - Log_Log("VM8086", "Worker thread ready and waiting"); +// Log_Log("VM8086", "Worker thread ready and waiting"); gpVM8086_State = NULL; Mutex_Release( &glVM8086_Process ); // Release lock obtained in VM8086_Install } diff --git a/Kernel/system.c b/Kernel/system.c index 986734cd..2bd302d6 100644 --- a/Kernel/system.c +++ b/Kernel/system.c @@ -136,7 +136,7 @@ void System_ParseCommandLine(char *ArgString) argc ++; // Count last argument // --- Parse Arguments (Pass 1) --- - for( i = 0; i < argc; i++ ) + for( i = 1; i < argc; i++ ) { switch(argv[i][0]) { @@ -162,7 +162,9 @@ void System_ParseCommandLine(char *ArgString) void System_ExecuteCommandLine(void) { int i; - for( i = 0; i < argc; i++ ) + if(argc > 0) + LOG("Invocation '%s'", argv[0]); + for( i = 1; i < argc; i++ ) { LOG("argv[%i] = '%s'", i, argv[i]); switch(argv[i][0])