interface: add return type EINVAL in CHECK_ERROR 52/164452/4 accepted/tizen/unified/20171221.071344 submit/tizen/20171220.125854 submit/tizen/20171221.025332
authorSegwon <segwon.han@samsung.com>
Tue, 19 Dec 2017 06:38:30 +0000 (15:38 +0900)
committerSegwon <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

index f51a4c24b299147bc7ac0faea48243039c6b05a7..d6137cea6feb7bc277dd725cee83a1e5e98645b4 100644 (file)
@@ -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); \