Fix PREVENT issues
authorKyuho Jo <kyuho.jo@samsung.com>
Mon, 20 Apr 2015 13:45:31 +0000 (22:45 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Mon, 20 Apr 2015 13:45:31 +0000 (22:45 +0900)
Change-Id: Ifcaf7a672732015009047b4b2d3304c5f715de4d
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
src/notification.c
src/notification_ipc.c
src/notification_noti.c

index 1ec0a8e..a903d7c 100755 (executable)
@@ -112,7 +112,7 @@ static char *_notification_get_pkgname_by_pid(void)
 
        dup_pkgname = strdup(pkgname);
        if (!dup_pkgname)
-               NOTIFICATION_ERR("Heap: %s\n", strerror(errno));
+               NOTIFICATION_ERR("Heap: %d\n", errno);
 
        return dup_pkgname;
 }
@@ -3123,4 +3123,4 @@ void notification_call_posted_toast_cb(const char *message)
        if (posted_toast_message_cb != NULL) {
                posted_toast_message_cb(message);
        }
-}
\ No newline at end of file
+}
index bc2024e..ac1391b 100755 (executable)
@@ -339,7 +339,7 @@ static inline char *_dup_string(const char *string)
 
        ret = strdup(string);
        if (!ret)
-               NOTIFICATION_ERR("Error: %s\n", strerror(errno));
+               NOTIFICATION_ERR("Error: %d\n", errno);
 
        return ret;
 }
index 8423ba5..84df045 100755 (executable)
@@ -1091,7 +1091,7 @@ EXPORT_API int notification_noti_delete_all(notification_type_e type, const char
                                if (tmp) {
                                        *list_deleted_rowid = tmp;
                                } else {
-                                       NOTIFICATION_ERR("Heap: %s\n", strerror(errno));
+                                       NOTIFICATION_ERR("Heap: %d\n", errno);
                                        /*!
                                         * \TODO
                                         * How can I handle this?