Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git] / lunaix-os / includes / lunaix / syslog.h
index b372daad4ce64f18b7665fb1180bc644127ab1cc..423823cc3d7335a64eb582e75b862e250bee3bd4 100644 (file)
@@ -29,6 +29,7 @@
     }
 
 #define DEBUG(fmt, ...) kprintf(KDEBUG fmt, ##__VA_ARGS__)
+#define INFO(fmt, ...) kprintf(KINFO fmt, ##__VA_ARGS__)
 #define WARN(fmt, ...) kprintf(KWARN fmt, ##__VA_ARGS__)
 #define ERROR(fmt, ...) kprintf(KERROR fmt, ##__VA_ARGS__)
 #define FATAL(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 */