summaryrefslogtreecommitdiff
path: root/src/kernel/log.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-01-24 12:00:11 -0500
committerBenji Dial <benji6283@gmail.com>2021-01-24 12:00:11 -0500
commitbce944d1498eaa3b6940ee234c863b3548a66b37 (patch)
treeea40c087ab4f0f236aee8d158cf68550f5209f72 /src/kernel/log.h
parentca731aa747214919df7b3dfe3478dbe787ce5b68 (diff)
downloadportland-os-bce944d1498eaa3b6940ee234c863b3548a66b37.tar.gz
graphics!
Diffstat (limited to 'src/kernel/log.h')
-rw-r--r--src/kernel/log.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/kernel/log.h b/src/kernel/log.h
index 90a94f4..c5c4da7 100644
--- a/src/kernel/log.h
+++ b/src/kernel/log.h
@@ -1,16 +1,17 @@
#ifndef LOG_H
#define LOG_H
-enum log_mode {
- LOG_SYSTEM,
+#include <stdarg.h>
+
+enum log_level {
LOG_USER,
+ LOG_INFO,
+ LOG_WARN,
+ LOG_ERROR,
LOG_PANIC
};
void init_log();
-void set_log_mode(enum log_mode mode);
-
-void logch(char ch);
-void logsz(const char *sz);
+void logf(enum log_level level, const char *format, ...);
-#endif \ No newline at end of file
+#endif