summaryrefslogtreecommitdiff
path: root/src/arch/log.h
diff options
context:
space:
mode:
authordzwdz2021-07-10 19:36:50 +0200
committerdzwdz2021-07-10 19:36:50 +0200
commita90f613e50b1677b03d19793039e0769a09caf9f (patch)
tree21b10fb5f924d383d13e711b23f2c0b5181feabf /src/arch/log.h
parente1a46050ac834b0d1a125847a117edb56d53f32a (diff)
abstract away logging
Now, the kernel only interfaces with the architecture dependent stuff via functions declared in generic.h. I'll write a linter enforcing this soon.
Diffstat (limited to 'src/arch/log.h')
-rw-r--r--src/arch/log.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/log.h b/src/arch/log.h
new file mode 100644
index 0000000..6365c20
--- /dev/null
+++ b/src/arch/log.h
@@ -0,0 +1,7 @@
+#pragma once
+#include <stddef.h>
+
+void log_write(const char *buf, size_t len);
+
+// used for static strings
+#define log_const(str) log_write(str, sizeof(str) - 1)