diff options
Diffstat (limited to 'kernel/shell.c')
| -rw-r--r-- | kernel/shell.c | 12 |
1 files changed, 4 insertions, 8 deletions
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> "); |
