From: Segwon Date: Tue, 19 Dec 2017 06:38:30 +0000 (+0900) Subject: interface: add return type EINVAL in CHECK_ERROR X-Git-Tag: submit/tizen_4.0/20171220.125806^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68a6482231f0e0d827e071568a785054d6c74dd0;p=platform%2Fcore%2Fapi%2Fperipheral-io.git interface: add return type EINVAL in CHECK_ERROR Change-Id: I7dfb65fb371c428a7ef2f030cb5711bfb9d221af Signed-off-by: Segwon --- diff --git a/include/interface/peripheral_interface_common.h b/include/interface/peripheral_interface_common.h index f51a4c2..d6137ce 100644 --- 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); \