From: Sangyoon Jang Date: Tue, 10 Oct 2017 01:56:09 +0000 (+0900) Subject: Fix wrong log format arguments X-Git-Tag: accepted/tizen/4.0/unified/20171012.074551~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fpkgmgr-server.git;a=commitdiff_plain;h=f7ce2f6dbdd11821890ed0cd1bb12a4681e58f3d Fix wrong log format arguments Change-Id: I95ff9177e7b606dca6df7b006281c78a70625786 Signed-off-by: Sangyoon Jang --- diff --git a/src/pkgmgr-server.c b/src/pkgmgr-server.c index d99a76e..a068f38 100644 --- a/src/pkgmgr-server.c +++ b/src/pkgmgr-server.c @@ -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; } diff --git a/src/restriction_mode.c b/src/restriction_mode.c index 98cc83d..f5ace20 100644 --- a/src/restriction_mode.c +++ b/src/restriction_mode.c @@ -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; }