Fix wrong log format arguments 70/154270/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 10 Oct 2017 01:56:09 +0000 (10:56 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 10 Oct 2017 01:56:09 +0000 (10:56 +0900)
Change-Id: I95ff9177e7b606dca6df7b006281c78a70625786
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/pkgmgr-server.c
src/restriction_mode.c

index d99a76e..a068f38 100644 (file)
@@ -482,7 +482,7 @@ static int __check_csr(const char *path)
        }
 
        if (malware != NULL) {
-               ERR("CSR denied[%d] installation", path);
+               ERR("CSR detected malware from [%s]", path);
                ret = -1;
        }
 
@@ -510,7 +510,7 @@ static int __kill_app(char *appid, uid_t uid)
 
        ret = aul_terminate_pid_for_uid(pid, uid);
        if (ret != AUL_R_OK) {
-               ERR("failed to terminate app(%d)", appid);
+               ERR("failed to terminate app(%s)", appid);
                return -1;
        }
 
index 98cc83d..f5ace20 100644 (file)
@@ -105,7 +105,7 @@ static int __unset_restriction_mode(uid_t uid, int mode)
 
        fd = open(conf_path, O_RDWR, 0);
        if (fd < 0) {
-               ERR("failed to open conf file: %s", errno);
+               ERR("failed to open conf file(%s): %d", conf_path, errno);
                free(conf_path);
                return -1;
        }
@@ -154,7 +154,7 @@ static int __get_restriction_mode(uid_t uid, int *mode)
 
        fd = open(conf_path, O_RDONLY, 0);
        if (fd < 0) {
-               ERR("failed to open conf file: %s", errno);
+               ERR("failed to open conf file(%s): %d", conf_path, errno);
                free(conf_path);
                return -1;
        }