From fa8226c31783376b498dfcb419231b06bf875081 Mon Sep 17 00:00:00 2001 From: hj kim Date: Thu, 10 Jan 2019 16:00:57 +0900 Subject: [PATCH] just add some debug msg to check abnormal status Change-Id: Ib68283e122117e87aa7bbc56035553ed7ab4331a --- src/media_controller_db.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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); -- 2.7.4