From: Jooseok Song Date: Tue, 8 Aug 2017 07:59:25 +0000 (+0900) Subject: Add more build log X-Git-Tag: submit/tizen/20170808.080415^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e5322b045abb4e81e45a022c9d4dd0bb5dff119;p=platform%2Fcore%2Fapi%2Flibaccount-service.git Add more build log Change-Id: I12a60028b059adee7983be6b7aebe4157dc19bf7 --- diff --git a/src/account_offline.c b/src/account_offline.c index edbdc09..b7e9703 100644 --- a/src/account_offline.c +++ b/src/account_offline.c @@ -272,6 +272,7 @@ static int _account_global_db_close(void) ACCOUNT_INTERNAL_API int account_type_insert_to_db_offline(account_type_h account_type, int *account_type_id) { _INFO("account_type_insert_to_db starting"); + fprintf(stderr, "\\n account_type_insert_to_db_offline \\n"); ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE HANDLE IS NULL")); ACCOUNT_RETURN_VAL((account_type_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE ID POINTER IS NULL")); @@ -282,6 +283,7 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db_offline(account_type_h accoun account_type_s *account_type_data = NULL; _INFO("account_manager_account_type_add start"); + fprintf(stderr, "\\n account_manager_account_type_add \\n"); guint pid = getpid(); _INFO("client pid = [%u]", pid); @@ -289,11 +291,13 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db_offline(account_type_h accoun return_code = _account_global_db_open(1); if (return_code != ACCOUNT_ERROR_NONE) { _ERR("_account_global_db_open() error, ret = %d", return_code); + fprintf(stderr, "\\n _account_global_db_open() error, ret = %d \\n", return_code); goto RETURN; } if (pkgmgr_installer_info_get_target_uid(&uid) < 0) { ACCOUNT_ERROR("pkgmgr_installer_info_get_target_uid() fail"); + fprintf(stderr, "\\n pkgmgr_installer_info_get_target_uid() fail \\n"); return ACCOUNT_ERROR_DB_NOT_OPENED; } @@ -304,24 +308,30 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db_offline(account_type_h accoun if (uid != OWNER_ROOT && uid != GLOBAL_USER) { _ERR("current process is not root user nor global user, uid=%d", uid); + fprintf(stderr, "\\n current process is not root user nor global user, uid=%d \\n", uid); goto RETURN; } account_type_data = (account_type_s *)account_type; if (account_type_data->app_id == NULL) { _ERR("app id of account_type_h is null"); + fprintf(stderr, "\\n app id of account_type_h is null"); return ACCOUNT_ERROR_INVALID_PARAMETER; } if (_account_type_check_duplicated(g_hAccountGlobalDB, account_type_data->app_id)) { _ERR("account_type duplicated, app_id=[%s]", account_type_data->app_id); + fprintf(stderr, "account_type duplicated, app_id=[%s]\\n", account_type_data->app_id); return ACCOUNT_ERROR_DUPLICATED; } _INFO("before _account_type_insert_to_db"); + fprintf(stderr, "\\n before _account_type_insert_to_dbl"); return_code = _account_type_insert_to_db(g_hAccountGlobalDB, account_type_data, &db_id); _INFO("after _account_type_insert_to_db"); + fprintf(stderr, "\\n after _account_type_insert_to_dbl"); if (return_code != ACCOUNT_ERROR_NONE) { _ERR("_account_type_insert_to_db error"); + fprintf(stderr, "\\n _account_type_insert_to_db error : %d\\n", return_code); goto RETURN; } @@ -330,13 +340,15 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db_offline(account_type_h accoun RETURN: _INFO("account_manager_account_type_add end"); + fprintf(stderr, "\\n account_manager_account_type_add end\\n"); if (g_hAccountUserDB == NULL) return return_code; return_code = _account_global_db_close(); if (return_code != ACCOUNT_ERROR_NONE) - ACCOUNT_DEBUG("_account_global_db_close() fail[%d]", return_code); + fprintf(stderr, "_account_global_db_close() fail[%d]", return_code); + //ACCOUNT_DEBUG("_account_global_db_close() fail[%d]", return_code); return return_code; }