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
1c7c21ea
Commit
1c7c21ea
authored
Aug 21, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/hal_utils/*_err.*: add more error codes
parent
bb1a1038
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
hal_utils_err.c
hal/hal_utils/hal_utils_err.c
+5
-1
hal_utils_err.h
hal/hal_utils/hal_utils_err.h
+4
-0
No files found.
hal/hal_utils/hal_utils_err.c
View file @
1c7c21ea
...
...
@@ -14,7 +14,11 @@ static const char *halutils_err [HALUTILS_ERR_END] =
{
[
HALUTILS_SUCCESS
]
=
"Success"
,
[
HALUTILS_ERR_ALLOC
]
=
"Could not allocate memory"
,
[
HALUTILS_ERR_NULL_POINTER
]
=
"Null pointer received"
[
HALUTILS_ERR_NULL_POINTER
]
=
"Null pointer received"
,
[
HALUTILS_ERR_NO_FUNC_REG
]
=
"No function registered"
,
[
HALUTILS_ERR_INV_LESS_ARGS
]
=
"Less arguments than specified passed"
,
[
HALUTILS_ERR_INV_MORE_ARGS
]
=
"More arguments than specified passed"
,
[
HALUTILS_ERR_INV_SIZE_ARG
]
=
"Invalid size of argument size"
};
/* Convert enumeration type to string */
...
...
hal/hal_utils/hal_utils_err.h
View file @
1c7c21ea
...
...
@@ -16,6 +16,10 @@ enum _halutils_err_e
HALUTILS_SUCCESS
=
0
,
/* No error */
HALUTILS_ERR_ALLOC
,
/* Could not allocate memory */
HALUTILS_ERR_NULL_POINTER
,
/* Null pointer received */
HALUTILS_ERR_NO_FUNC_REG
,
/* No function registered */
HALUTILS_ERR_INV_LESS_ARGS
,
/* Less arguments than specified passed */
HALUTILS_ERR_INV_MORE_ARGS
,
/* More arguments than specified passed */
HALUTILS_ERR_INV_SIZE_ARG
,
/* Invalid size of argument size */
HALUTILS_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