diff options
author | Richard Braun <rbraun@sceen.net> | 2017-05-23 20:32:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-23 20:32:07 +0200 |
commit | b5451753e15bbe0a986ed32297f4a5de5c7e77ea (patch) | |
tree | f9f751765ea914ccc13fbe85dcb56bbc61218b95 | |
parent | ea5c6b46ca704a05186f18bfe1ae9cd986806150 (diff) |
kern/error: new ERROR_NODEV macro
-rw-r--r-- | kern/error.c | 4 | ||||
-rw-r--r-- | kern/error.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/kern/error.c b/kern/error.c index 043cdb98..e37c67ce 100644 --- a/kern/error.c +++ b/kern/error.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Richard Braun. + * Copyright (c) 2014-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,8 @@ error_str(int error) return "device or resource busy"; case ERROR_FAULT: return "Bad address"; + case ERROR_NODEV: + return "No such device"; default: return "unknown error"; } diff --git a/kern/error.h b/kern/error.h index eb11cda0..62859f47 100644 --- a/kern/error.h +++ b/kern/error.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014 Richard Braun. + * Copyright (c) 2012-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #define ERROR_INVAL 3 #define ERROR_BUSY 4 #define ERROR_FAULT 5 +#define ERROR_NODEV 6 /* * Return a string describing the given error. |