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! --- lib/logger/log.c | 22 ++++++++++++++++++++++ lib/logger/log.h | 12 ++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 lib/logger/log.c create mode 100644 lib/logger/log.h (limited to 'lib/logger') 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 + +void log(char *module_name, int prio, char *format_string, ...); + +#endif + -- cgit v1.2.3