summaryrefslogtreecommitdiff
path: root/lib/logger/log.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 /lib/logger/log.c
parentd680d4c641c085e7a31d19fe2d01f528e96d2ced (diff)
cleanup and switched logging to vesa mode console!
Diffstat (limited to 'lib/logger/log.c')
-rw-r--r--lib/logger/log.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c
new file mode 100644
index 0000000..85ac5b6
--- /dev/null
+++ b/lib/logger/log.c
@@ -0,0 +1,22 @@
+#include "log.h"
+
+
+void PutConsole(char *str, int color, va_list va);
+
+void log(char *module_name, int prio, char *format_string, ...)
+{
+
+ PutConsole(module_name,1000,0);
+ PutConsole(": ",0xf,0);
+ va_list va;
+ va_start(va,format_string);
+
+ PutConsole(format_string, 6000, va);
+
+ va_end(va);
+ PutConsoleNL();
+
+
+
+
+}