aboutsummaryrefslogtreecommitdiff
path: root/include/kern/panic.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 15:15:11 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 15:22:42 -0700
commitecbcb2509f4b811bce0a56e07de9737d14815251 (patch)
treef96492fb6db5d26c133dc3ab2993a9df3f224ea2 /include/kern/panic.h
parent351ff7059a5bacb322664412a8c62ee4640b33bf (diff)
downloadstm32l4-ecbcb2509f4b811bce0a56e07de9737d14815251.tar.gz
stm32l4-ecbcb2509f4b811bce0a56e07de9737d14815251.tar.bz2
stm32l4-ecbcb2509f4b811bce0a56e07de9737d14815251.zip
Add better logging capabilities, including the ability to panic.
Diffstat (limited to 'include/kern/panic.h')
-rw-r--r--include/kern/panic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/kern/panic.h b/include/kern/panic.h
new file mode 100644
index 0000000..aa064bf
--- /dev/null
+++ b/include/kern/panic.h
@@ -0,0 +1,6 @@
+#ifndef KERN_PANIC_H_
+#define KERN_PANIC_H_
+
+_Noreturn void panic(const char* fmt, ...);
+
+#endif