From: hj kim Date: Thu, 10 Jan 2019 07:00:57 +0000 (+0900) Subject: just add some debug msg to check abnormal status X-Git-Tag: submit/tizen_5.0/20190110.080541~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e781755edfe83a86540a76f6e9f38ae8842558c5;p=platform%2Fcore%2Fapi%2Fmedia-controller.git just add some debug msg to check abnormal status Change-Id: Ib68283e122117e87aa7bbc56035553ed7ab4331a (cherry picked from commit fa8226c31783376b498dfcb419231b06bf875081) --- diff --git a/src/media_controller_db.c b/src/media_controller_db.c index 987cf50..2ca1ab2 100755 --- a/src/media_controller_db.c +++ b/src/media_controller_db.c @@ -1000,10 +1000,12 @@ int mc_db_check_server_table_exist(void *handle, const char *server_name, bool * mc_debug("table count [%d]", count); - if (count > 0) + if (count > 0) { *exist = TRUE; - else + } else { + mc_debug("server info is not exist [%s]", server_name); *exist = FALSE; + } SQLITE3_FINALIZE(stmt); SQLITE3_SAFE_FREE(sql_str); @@ -1044,10 +1046,12 @@ int mc_db_check_client_table_exist(void *handle, const char *client_name, bool * mc_debug("table count [%d]", count); - if (count > 0) + if (count > 0) { *exist = TRUE; - else + } else { + mc_debug("client info is not exist [%s]", client_name); *exist = FALSE; + } SQLITE3_FINALIZE(stmt); SQLITE3_SAFE_FREE(sql_str);