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: accepted/tizen/unified/20190111.055235~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F197172%2F1;p=platform%2Fcore%2Fapi%2Fmedia-controller.git just add some debug msg to check abnormal status Change-Id: Ib68283e122117e87aa7bbc56035553ed7ab4331a --- 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);