From: sungrae jo Date: Tue, 24 Dec 2019 07:12:15 +0000 (+0900) Subject: Fixed cynara log X-Git-Tag: accepted/tizen/unified/20200323.173028~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F78%2F220878%2F1;p=platform%2Fcore%2Fuifw%2Fstt.git Fixed cynara log Change-Id: Iacaf881fac4b9dcafb24b2f970f374bc16421510 Signed-off-by: sungrae jo --- diff --git a/client/stt.c b/client/stt.c index 99ce8ac..4781372 100644 --- a/client/stt.c +++ b/client/stt.c @@ -129,14 +129,15 @@ static bool __check_privilege(const char* uid, const char * privilege) pid_t pid = getpid(); char *session = cynara_session_from_pid(pid); int ret = cynara_check(p_cynara, smack_label, session, uid, privilege); - SLOG(LOG_DEBUG, TAG_STTC, "[Client]cynara_check returned %d(%s)", ret, (CYNARA_API_ACCESS_ALLOWED == ret) ? "Allowed" : "Denied"); if (session) { free(session); session = NULL; } - if (ret != CYNARA_API_ACCESS_ALLOWED) + if (ret != CYNARA_API_ACCESS_ALLOWED) { + SLOG(LOG_DEBUG, TAG_STTC, "[Client]cynara_check returned %d(Denied)", ret); return false; + } return true; }