X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0765e7c133eb393d8cd0292af444543c2edf8ccc..69777bdcab284335651a8002e2896f3862fa423d:/lunaix-os/includes/lunaix/syslog.h diff --git a/lunaix-os/includes/lunaix/syslog.h b/lunaix-os/includes/lunaix/syslog.h index 4877857..621c81a 100644 --- a/lunaix-os/includes/lunaix/syslog.h +++ b/lunaix-os/includes/lunaix/syslog.h @@ -2,6 +2,7 @@ #define __LUNAIX_SYSLOG_H #include +#include #include #define KLOG_DEBUG 0 @@ -35,28 +36,9 @@ #define FATAL(fmt, ...) \ ({ \ kprintf(KFATAL fmt, ##__VA_ARGS__); \ - spin(); \ + fail(fmt); \ }) void kprintf_m(const char* component, const char* fmt, va_list args); - -// TODO need more thought on it - -// struct klog_chunk -// { -// void* log_entry; -// size_t max_len; -// size_t len; -// }; - -// struct klog_chunk* -// kprintf_lcstart_m(const char* component, size_t size); - -// void -// kprintf_lcappend_m(struct klog_chunk*, const char* fmt, va_list args); - -// void -// kprintf_lcdone_m(struct klog_chunk*); - #endif /* __LUNAIX_SYSLOG_H */