diff options
| author | Miguel <m.i@gmx.at> | 2018-08-18 19:00:44 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-18 19:00:44 +0200 |
| commit | 18d1aa2593003680b0d6f59a36e5dad2821134b2 (patch) | |
| tree | 08ab014714e623961d965a9e7913010d0eec1305 /lib | |
| parent | 8d5d5b8fcca8c9fad89f64f41a3d36c62453dba4 (diff) | |
cleaning up
Diffstat (limited to 'lib')
| -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) { |
