Kernel: remove message from BAN::Error
We don't store the error message anymore in BAN::Error. Instead we store a error code that can be mapped into a string. This allows BAN::Error to only take 4 bytes instead of 128. We should also make some kernel initialization just panic instead of returning errors since they are required for succesfull boot anyway.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define ENAMETOOLONG 11
|
||||
#define ENOBUFS 12
|
||||
#define ENOTTY 13
|
||||
#define ENOTBLK 14
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -122,6 +122,9 @@ char* strerror(int error)
|
||||
case ENOTTY:
|
||||
strcpy(buffer, "Inappropriate I/O control operation");
|
||||
break;
|
||||
case ENOTBLK:
|
||||
strcpy(buffer, "Block device required");
|
||||
break;
|
||||
default:
|
||||
{
|
||||
// FIXME: sprintf
|
||||
|
||||
Reference in New Issue
Block a user