summaryrefslogtreecommitdiff
path: root/kernel/shell.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-08-27 23:10:04 +0200
committerMichal Idziorek <m.i@gmx.at>2014-08-27 23:10:04 +0200
commit7aea8d20ec8816759c8439fc39d90579fc37e18b (patch)
treef59d354ea1ad128929e0e810da0fa78bab00537b /kernel/shell.c
parentd680d4c641c085e7a31d19fe2d01f528e96d2ced (diff)
cleanup and switched logging to vesa mode console!
Diffstat (limited to 'kernel/shell.c')
-rw-r--r--kernel/shell.c12
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> ");