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"));
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);
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;
}
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;
}
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;
}