From: hjkim Date: Tue, 17 Dec 2024 07:05:58 +0000 (+0900) Subject: Add more info to debug message X-Git-Tag: accepted/tizen/unified/20241219.032735~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F316702%2F3;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Add more info to debug message Change-Id: Iba87610cd54d189598e263960bb4c947a6ba6b1d --- diff --git a/svc/media_controller_db_util.c b/svc/media_controller_db_util.c index 35da334..dcf9ca3 100644 --- a/svc/media_controller_db_util.c +++ b/svc/media_controller_db_util.c @@ -43,7 +43,7 @@ static char *__mc_db_get_user_path(uid_t uid) struct tzplatform_context *ctx = NULL; char *path = NULL; - mc_retvm_if(uid < REGULAR_USER, NULL, "Invalid uid"); + mc_retvm_if(uid < REGULAR_USER, NULL, "Invalid uid [%d]", uid); g_mutex_lock(&tzplatform_mutex); @@ -260,10 +260,12 @@ char *mc_db_get_db_path(uid_t uid) { char *db_path = NULL; - if (uid == getuid()) + if (uid == getuid()) { db_path = g_strdup(tzplatform_mkpath(TZ_USER_DB, MC_DB_NAME)); - else + } else { + mc_info("uid : [%d] getuid() : [%d]", uid, getuid()); db_path = __mc_db_get_user_path(uid); + } //mc_secure_debug("DB path [%s]", db_path);