summaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-07-26 15:25:22 -0500
committerNathan Lee <me@nwlee.tech>2026-07-26 15:26:49 -0500
commit5c12f756189373fb25220fe8824d4df785e61742 (patch)
tree9e1907d1f63254e8272358aa51cd4d8e9d627957 /include/log.h
parent9137408a4989fcafca6527a2e17e5a7348d00dde (diff)
create ringbuffer for logging
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
new file mode 100644
index 0000000..2b35922
--- /dev/null
+++ b/include/log.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#define RINGBUF_SIZE 64 * 1024
+
+void vprintk(const char *message, __builtin_va_list args);
+void printk(const char *message, ...);