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 1ec0a8ed3e4769ae0eb208cd4b0be02346afb8e4..a903d7c8a9ac4a85c360806e4be00469dd44e47d 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 bc2024e8a5971ae810eb2f632c061ee7c9a479ec..ac1391b774fe288e319e5481bd4098c6f470c2bb 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 8423ba5bfa92f6a8db0d15dbdc1aaaf97d8db155..84df045683b3d8451e8076f25d76907099aff646 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?