summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpr.jung <pr.jung@samsung.com>2016-03-16 15:03:10 +0900
committerpr.jung <pr.jung@samsung.com>2016-03-17 13:43:38 +0900
commit31fd9e1e914a5c03360c63481b07422edbf22225 (patch)
treeb9282a1715724eb71a9b73b29e65a3ce066f839d
parent0b10f1b03e7ca3257290d731baf44eec70929e03 (diff)
downloadlibsvi-31fd9e1e914a5c03360c63481b07422edbf22225.tar.gz
libsvi-31fd9e1e914a5c03360c63481b07422edbf22225.tar.bz2
libsvi-31fd9e1e914a5c03360c63481b07422edbf22225.zip
Change-Id: I9b982c96849408a43a9b6f720c4d8398e3bc70e4 Signed-off-by: pr.jung <pr.jung@samsung.com>
-rw-r--r--include/feedback.h2
-rw-r--r--src/vibrator.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/feedback.h b/include/feedback.h
index 7894597..20f5319 100644
--- a/include/feedback.h
+++ b/include/feedback.h
@@ -44,7 +44,7 @@ extern "C" {
typedef enum
{
FEEDBACK_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- FEEDBACK_ERROR_OPERATION_FAILED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */
+ FEEDBACK_ERROR_OPERATION_FAILED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation failed */
FEEDBACK_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
FEEDBACK_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported in this device */
FEEDBACK_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
diff --git a/src/vibrator.c b/src/vibrator.c
index a2c6f3a..bd1e550 100644
--- a/src/vibrator.c
+++ b/src/vibrator.c
@@ -197,7 +197,7 @@ static unsigned char *convert_file_to_buffer(const char *file_name, int *size)
/* Get File Stream Pointer */
pf = fopen(file_name, "rb");
if (!pf) {
- _E("fopen failed : %s", strerror(errno));
+ _E("fopen failed : %d", errno);
return NULL;
}
@@ -228,7 +228,7 @@ err_free:
error:
fclose(pf);
- _E("failed to convert file to buffer (%s)", strerror(errno));
+ _E("failed to convert file to buffer (%d)", errno);
return NULL;
}