Remove thread unsafety function usage 38/62438/2 accepted/tizen/common/20160318.145702 accepted/tizen/ivi/20160318.113717 accepted/tizen/mobile/20160318.113504 accepted/tizen/tv/20160318.113602 accepted/tizen/wearable/20160318.113544 submit/tizen/20160317.122201
authorpr.jung <pr.jung@samsung.com>
Wed, 16 Mar 2016 06:03:10 +0000 (15:03 +0900)
committerpr.jung <pr.jung@samsung.com>
Thu, 17 Mar 2016 04:43:38 +0000 (13:43 +0900)
Change-Id: I9b982c96849408a43a9b6f720c4d8398e3bc70e4
Signed-off-by: pr.jung <pr.jung@samsung.com>
include/feedback.h
src/vibrator.c

index 7894597..20f5319 100644 (file)
@@ -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 */
index a2c6f3a..bd1e550 100644 (file)
@@ -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;
 }