summaryrefslogtreecommitdiff
path: root/kern/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/log.h')
-rw-r--r--kern/log.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/kern/log.h b/kern/log.h
index 003e99b2..581a7840 100644
--- a/kern/log.h
+++ b/kern/log.h
@@ -23,6 +23,8 @@
#include <stdarg.h>
+
+#include <kern/init.h>
enum {
LOG_EMERG,
LOG_ALERT,
@@ -36,16 +38,6 @@ enum {
};
/*
- * Initialize the log module.
- */
-void log_setup(void);
-
-/*
- * Start the log thread.
- */
-void log_start(void);
-
-/*
* Generate a message and send it to the log thread.
*
* The arguments and return value are similar to printf(), with
@@ -92,4 +84,13 @@ int log_vinfo(const char *format, va_list ap)
int log_vdebug(const char *format, va_list ap)
__attribute__((format(printf, 1, 0)));
+/*
+ * This init operation provides :
+ * - message logging
+ *
+ * The log thread isn't yet started and messages are merely stored in an
+ * internal buffer.
+ */
+INIT_OP_DECLARE(log_setup);
+
#endif /* _KERN_LOG_H */