From 7aea8d20ec8816759c8439fc39d90579fc37e18b Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 27 Aug 2014 23:10:04 +0200 Subject: cleanup and switched logging to vesa mode console! --- kernel/shell.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'kernel/shell.c') diff --git a/kernel/shell.c b/kernel/shell.c index ebbeb51..2c7fc95 100644 --- a/kernel/shell.c +++ b/kernel/shell.c @@ -1,5 +1,7 @@ #include "kernel.h" #include "interrupts.h" +#include "../lib/logger/log.h" // logger facilities +#define FOOLOS_MODULE_NAME "shell" #define COMMAND_LENGTH 255 @@ -55,12 +57,7 @@ void shell_execute() if(1==strcmp(command,"TIME")) { - scr_put_hex(timer16); - scr_put_string(" seconds passed since system start."); - } - else if(1==strcmp(command,"INT")) - { - scr_put_hex(int_unhandled); + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"%d seconds passed since system start.",timer16); } else if(1==strcmp(command,"EIGHT")) { @@ -72,11 +69,10 @@ void shell_execute() } else { - scr_put_string(" unsupported command, sorry!"); + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"command unknown"); } pos=0; - scr_nextline(); scr_put_string("Command> "); -- cgit v1.2.3