#define UAM_ERR(fmt, arg...) \
SLOGI_IF(TRUE, LOG_COLOR_RED" "fmt" "LOG_COLOR_RESET, ##arg)
-#define FUNC_ENTRY UAM_DBG("+")
-#define FUNC_EXIT UAM_DBG("-")
+#define FUNC_ENTRY UAM_INFO("+")
+#define FUNC_EXIT UAM_INFO("-")
#define ret_if(expr) \
do { \
static int __uam_remove_device(int user_id, uam_db_device_info_t *device,
const uam_device_info_s *dev_info, uam_db_tech_info_t *tech, const int app_num)
{
+ FUNC_ENTRY;
+
int ret;
GSList *l;
int count = 0;
ret = __uam_db_exec_sql(sql, NULL);
if (UAM_ERROR_NONE != ret)
- UAM_DBG("failed to begin transaction");
+ UAM_ERR("failed to begin transaction");
else
UAM_DBG("Successful to begin transaction");
ret = __uam_db_exec_sql(sql, NULL);
if (UAM_ERROR_NONE != ret)
- UAM_DBG("failed to rollback transaction");
+ UAM_ERR("failed to rollback transaction");
else
UAM_DBG("Successful to rollback transaction");
transaction_cnt--;
if (0 != transaction_cnt) {
- UAM_DBG("transaction_cnt: %d", transaction_cnt);
+ UAM_ERR("transaction_cnt: %d", transaction_cnt);
return ret;
}
ret = __uam_db_exec_sql(sql, NULL);
if (UAM_ERROR_NONE != ret) {
- UAM_DBG("failed to commit transaction");
+ UAM_ERR("failed to commit transaction");
ret = __uam_db_rollback_transaction();
} else
- UAM_DBG("Successful to commit transaction");
+ UAM_INFO("Successful to commit transaction");
sqlite3_free(sql);