properly update the pprev of next node when deleting hlist_node (close #30)
[lunaix-os.git] / lunaix-os / includes / lunaix / syslog.h
index 487785762d1aa8542adf0a2effcc92dc790798e7..621c81a76d231a609ce1ecf1313aba062fc729e8 100644 (file)
@@ -2,6 +2,7 @@
 #define __LUNAIX_SYSLOG_H
 
 #include <lunaix/compiler.h>
+#include <lunaix/spike.h>
 #include <stdarg.h>
 
 #define KLOG_DEBUG 0
 #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 */