summaryrefslogtreecommitdiff
path: root/libddekit/ddekit/panic.h
diff options
context:
space:
mode:
Diffstat (limited to 'libddekit/ddekit/panic.h')
-rw-r--r--libddekit/ddekit/panic.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libddekit/ddekit/panic.h b/libddekit/ddekit/panic.h
new file mode 100644
index 00000000..1468675f
--- /dev/null
+++ b/libddekit/ddekit/panic.h
@@ -0,0 +1,16 @@
+#ifndef _ddekit_panic_h
+#define _ddekit_panic_h
+
+/** \defgroup DDEKit_util */
+
+/** Panic - print error message and enter the kernel debugger.
+ * \ingroup DDEKit_util
+ */
+void ddekit_panic(char *fmt, ...) __attribute__((noreturn));
+
+/** Print a debug message.
+ * \ingroup DDEKit_util
+ */
+void ddekit_debug(char *fmt, ...);
+
+#endif