summaryrefslogtreecommitdiff
path: root/kern/error.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-10-09 21:36:48 +0200
committerRichard Braun <rbraun@sceen.net>2014-10-09 21:36:48 +0200
commit321fd79c19d48ed57775c996af932d991901ab5a (patch)
tree199a6dd42cadad7f7a1dec63141c999225c0a8ae /kern/error.h
parent6ce44dca7860288f1b0205b823ae5747e52978e5 (diff)
kern/error: new error_str function
Diffstat (limited to 'kern/error.h')
-rw-r--r--kern/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kern/error.h b/kern/error.h
index 0d8bf73..cf88775 100644
--- a/kern/error.h
+++ b/kern/error.h
@@ -24,6 +24,11 @@
#define ERROR_BUSY 4
/*
+ * Return a string describing the given error.
+ */
+const char * error_str(int error);
+
+/*
* If error denotes an actual error (i.e. is not 0), panic, using the given
* string as a prefix for the error message. A NULL prefix is allowed.
*/