Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
164be900
Commit
164be900
authored
Apr 23, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/hal/{hal_utils,msg}/*_err.*: move message error codes to MSG files
parent
dbf992de
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
hal_utils_err.c
src/hal/hal_utils/hal_utils_err.c
+1
-4
hal_utils_err.h
src/hal/hal_utils/hal_utils_err.h
+0
-3
msg_err.c
src/hal/msg/msg_err.c
+4
-1
msg_err.h
src/hal/msg/msg_err.h
+3
-0
No files found.
src/hal/hal_utils/hal_utils_err.c
View file @
164be900
...
...
@@ -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 */
...
...
src/hal/hal_utils/hal_utils_err.h
View file @
164be900
...
...
@@ -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
};
...
...
src/hal/msg/msg_err.c
View file @
164be900
...
...
@@ -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 */
...
...
src/hal/msg/msg_err.h
View file @
164be900
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment