summaryrefslogtreecommitdiff
path: root/lib/logger
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
parentd680d4c641c085e7a31d19fe2d01f528e96d2ced (diff)
cleanup and switched logging to vesa mode console!
Diffstat (limited to 'lib/logger')
-rw-r--r--lib/logger/log.c22
-rw-r--r--lib/logger/log.h12
2 files changed, 34 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();
+
+
+
+
+}
diff --git a/lib/logger/log.h b/lib/logger/log.h
new file mode 100644
index 0000000..bcc1bc7
--- /dev/null
+++ b/lib/logger/log.h
@@ -0,0 +1,12 @@
+#ifndef FOOLOS_LOG_H
+#define FOOLOS_LOGL_H
+
+
+#define FOOLOS_LOG_INFO 1
+
+#include <stdarg.h>
+
+void log(char *module_name, int prio, char *format_string, ...);
+
+#endif
+