projects
/
platform
/
core
/
api
/
peripheral-io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24403e7
)
interface: add return type EINVAL in CHECK_ERROR
52/164452/4
accepted/tizen/unified/20171221.071344
submit/tizen/20171220.125854
submit/tizen/20171221.025332
author
Segwon
<segwon.han@samsung.com>
Tue, 19 Dec 2017 06:38:30 +0000
(15:38 +0900)
committer
Segwon
<segwon.han@samsung.com>
Wed, 20 Dec 2017 03:48:54 +0000
(12:48 +0900)
Change-Id: I7dfb65fb371c428a7ef2f030cb5711bfb9d221af
Signed-off-by: Segwon <segwon.han@samsung.com>
include/interface/peripheral_interface_common.h
patch
|
blob
|
history
diff --git
a/include/interface/peripheral_interface_common.h
b/include/interface/peripheral_interface_common.h
index f51a4c24b299147bc7ac0faea48243039c6b05a7..d6137cea6feb7bc277dd725cee83a1e5e98645b4 100644
(file)
--- a/
include/interface/peripheral_interface_common.h
+++ b/
include/interface/peripheral_interface_common.h
@@
-32,6
+32,8
@@
if (expr) { \
if (errno == EAGAIN) \
return PERIPHERAL_ERROR_TRY_AGAIN; \
+ if (errno == EINVAL) \
+ return PERIPHERAL_ERROR_INVALID_PARAMETER; \
char errmsg[MAX_ERR_LEN]; \
strerror_r(errno, errmsg, sizeof(errmsg)); \
_E("Failed the %s(%d) function. errmsg: %s", __FUNCTION__, __LINE__, errmsg); \