From a90f613e50b1677b03d19793039e0769a09caf9f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jul 2021 19:36:50 +0200 Subject: 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. --- src/arch/log.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/arch/log.h (limited to 'src/arch/log.h') 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 + +void log_write(const char *buf, size_t len); + +// used for static strings +#define log_const(str) log_write(str, sizeof(str) - 1) -- cgit v1.2.3