diff options
author | pr.jung <pr.jung@samsung.com> | 2016-07-14 16:48:41 +0900 |
---|---|---|
committer | pr.jung <pr.jung@samsung.com> | 2016-07-14 16:48:41 +0900 |
commit | 58c76943d115f15d5fb88c750681b90f16264a55 (patch) | |
tree | b095500f2639a05267b990672157997c2c9a5532 /src/vibrator.c | |
parent | 16dc0708b4f4086d72f2a5a3af00567d73d8135e (diff) | |
download | libsvi-58c76943d115f15d5fb88c750681b90f16264a55.tar.gz libsvi-58c76943d115f15d5fb88c750681b90f16264a55.tar.bz2 libsvi-58c76943d115f15d5fb88c750681b90f16264a55.zip |
Add comments for line/function coverage analysis
Change-Id: I25a9b6fa219068a23c547d2ab1af851170d68a86
Signed-off-by: pr.jung <pr.jung@samsung.com>
Diffstat (limited to 'src/vibrator.c')
-rw-r--r-- | src/vibrator.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vibrator.c b/src/vibrator.c index 48cd3c2..3a56824 100644 --- a/src/vibrator.c +++ b/src/vibrator.c @@ -235,7 +235,7 @@ static int vibrator_play(feedback_pattern_e pattern) if (pattern <= FEEDBACK_PATTERN_NONE || pattern >= profile->max_pattern) { - _E("Not supported vibration pattern"); + _E("Not supported vibration pattern"); //LCOV_EXCL_LINE return -ENOTSUP; } @@ -248,7 +248,7 @@ static int vibrator_play(feedback_pattern_e pattern) data = trim_str(temp); if (!data) { free(temp); - _E("Not supported vibration pattern"); + _E("Not supported vibration pattern"); //LCOV_EXCL_LINE return -ENOTSUP; } @@ -317,7 +317,7 @@ static int vibrator_is_supported(int pattern, bool *supported) if (pattern <= FEEDBACK_PATTERN_NONE || pattern >= profile->max_pattern) { - _E("Not supported vibration pattern"); + _E("Not supported vibration pattern"); //LCOV_EXCL_LINE *supported = false; return 0; } @@ -334,7 +334,7 @@ static int vibrator_is_supported(int pattern, bool *supported) ret = haptic_is_supported(data); free(temp); if (ret < 0) { - _E("fail to get support information"); + _E("fail to get support information"); //LCOV_EXCL_LINE if (ret == -ECOMM) return ret; return -EPERM; @@ -345,7 +345,6 @@ static int vibrator_is_supported(int pattern, bool *supported) return 0; } -//LCOV_EXCL_START Not used function-Internal APIs TODO Will make iUTC static int vibrator_get_path(feedback_pattern_e pattern, char *buf, unsigned int buflen) { return 0; @@ -355,7 +354,6 @@ static int vibrator_set_path(feedback_pattern_e pattern, char *path) { return 0; } -//LCOV_EXCL_STOP static const struct device_ops vibrator_device_ops = { .type = FEEDBACK_TYPE_VIBRATION, |