diff options
Diffstat (limited to 'lib/logger/log.c')
| -rw-r--r-- | lib/logger/log.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c index 63e9558..3b175c0 100644 --- a/lib/logger/log.c +++ b/lib/logger/log.c @@ -12,10 +12,6 @@ static void log_string(char *str) { -// if(get_max_fd()<2)return; -// syscall_write(2,str,strlen(str)); - - // TODO: use FD abstraction! while(*str!=0) { serial_write(*str++); @@ -54,10 +50,10 @@ void panic(char *module_name, char *message) { char buf_log[256]; tfp_sprintf(buf_log,"\033[41;37m\n !! KERNEL PANIC !! %s: %s\n\n",module_name,message); -// log_string(buf_log); + //PANIC DIRECTLY TO STDOUT// - log_string(buf_log); syscall_write(1,buf_log,strlen(buf_log)); + log_string(buf_log); while(1) { |
