diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/logger/log.c | 14 | ||||
| -rw-r--r-- | lib/logger/log.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c index 3a6606e..fd226e5 100644 --- a/lib/logger/log.c +++ b/lib/logger/log.c @@ -19,3 +19,17 @@ void log(char *module_name, int log_level, char *format_string, ...) } +void panic(char *module_name, char *format_string) +{ + + PutConsole("!! KERNEL PANIC !! ",0b1111100000000000,0); + PutConsole(module_name,0b1111100000000000,0); + PutConsole(" : ",0b0000011111100000,0); + PutConsole(format_string,0b1111100000000000,0); + + + while(1); // halt + + + +} diff --git a/lib/logger/log.h b/lib/logger/log.h index 9c32a39..251c66f 100644 --- a/lib/logger/log.h +++ b/lib/logger/log.h @@ -6,6 +6,7 @@ #define FOOLOS_LOG_FINE 1 void log(char *module_name, int prio, char *format_string, ...); +void panic(char *module_name, char *format_string); #endif |
