summaryrefslogtreecommitdiff
path: root/kern/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/error.c')
-rw-r--r--kern/error.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/kern/error.c b/kern/error.c
index 02a26d0c..f5d43e48 100644
--- a/kern/error.c
+++ b/kern/error.c
@@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stddef.h>
+
#include <kern/error.h>
#include <kern/panic.h>
@@ -33,13 +35,17 @@ error_str(int error)
case ERROR_BUSY:
return "device or resource busy";
case ERROR_FAULT:
- return "Bad address";
+ return "bad address";
case ERROR_NODEV:
- return "No such device";
+ return "no such device";
case ERROR_EXIST:
- return "Entry exists";
+ return "entry exists";
case ERROR_IO:
- return "Input/output error";
+ return "input/output error";
+ case ERROR_SRCH:
+ return "no such process";
+ case ERROR_TIMEDOUT:
+ return "timeout error";
default:
return "unknown error";
}