Commit 164be900 authored by Lucas Russo's avatar Lucas Russo

src/hal/{hal_utils,msg}/*_err.*: move message error codes to MSG files

parent dbf992de
......@@ -15,10 +15,7 @@ static const char *hutils_err [HUTILS_ERR_END] =
[HUTILS_SUCCESS] = "Success",
[HUTILS_ERR_ALLOC] = "Could not allocate memory",
[HUTILS_ERR_NULL_POINTER] = "Null pointer received",
[HUTILS_ERR_NO_FUNC_REG] = "No function registered",
[HUTILS_ERR_INV_LESS_ARGS] = "Less arguments than specified passed",
[HUTILS_ERR_INV_MORE_ARGS] = "More arguments than specified passed",
[HUTILS_ERR_INV_SIZE_ARG] = "Invalid size of argument size"
[HUTILS_ERR_NO_FUNC_REG] = "No function registered"
};
/* Convert enumeration type to string */
......
......@@ -17,9 +17,6 @@ enum _hutils_err_e
HUTILS_ERR_ALLOC, /* Could not allocate memory */
HUTILS_ERR_NULL_POINTER, /* Null pointer received */
HUTILS_ERR_NO_FUNC_REG, /* No function registered */
HUTILS_ERR_INV_LESS_ARGS, /* Less arguments than specified passed */
HUTILS_ERR_INV_MORE_ARGS, /* More arguments than specified passed */
HUTILS_ERR_INV_SIZE_ARG, /* Invalid size of argument size */
HUTILS_ERR_END
};
......
......@@ -17,7 +17,10 @@ static const char *msg_err [MSG_ERR_END] =
[MSG_FUNC_NOT_IMPL] = "Function not implemented",
[MSG_ERR_INV] = "Invalid message structure",
[MSG_ERR_WRONG_ARGS] = "Wrong arguments received (number or size)",
[MSG_ERR_UNEX_MSG] = "Unexpected message type"
[MSG_ERR_UNEX_MSG] = "Unexpected message type",
[MSG_ERR_INV_LESS_ARGS] = "Less arguments than specified passed",
[MSG_ERR_INV_MORE_ARGS] = "More arguments than specified passed",
[MSG_ERR_INV_SIZE_ARG] = "Invalid size of argument size"
};
/* Convert enumeration type to string */
......
......@@ -19,6 +19,9 @@ enum _msg_err_e
MSG_ERR_INV, /* Invalid message structure */
MSG_ERR_WRONG_ARGS, /* Wrong arguments received (number or size) */
MSG_ERR_UNEX_MSG, /* Unexpected message type */
MSG_ERR_INV_LESS_ARGS, /* Less arguments than specified passed */
MSG_ERR_INV_MORE_ARGS, /* More arguments than specified passed */
MSG_ERR_INV_SIZE_ARG, /* Invalid size of argument size */
MSG_ERR_END
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment