diff options
author | dzwdz | 2021-07-10 19:36:50 +0200 |
---|---|---|
committer | dzwdz | 2021-07-10 19:36:50 +0200 |
commit | a90f613e50b1677b03d19793039e0769a09caf9f (patch) | |
tree | 21b10fb5f924d383d13e711b23f2c0b5181feabf /src/arch/log.h | |
parent | e1a46050ac834b0d1a125847a117edb56d53f32a (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.h | 7 |
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) |