/* LCOV_EXCL_START */
static void _foreach_cb(gpointer key, gpointer value, gpointer user_data)
{
- DBG("[hash check]--------- key[%s] value[%p]", key, value);
+ DBG("[hash check]--------- key[%s] value[%p]", (char *)key, (char *)value);
}
static void _print_hash(GHashTable *table)
{
}
if (callback == cb_info->cb && user_data == cb_info->user_data) {
- DBG("This callback is already appended(%x)(%x)", callback, user_data);
+ DBG("This callback is already appended(%p)(%p)", callback, user_data);
pthread_mutex_unlock(&cal_mutex_reminder);
return CALENDAR_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
}
- DBG("add reminer(0x%x)", callback);
+ DBG("add reminer(%p)", callback);
ci->id = cal_dbus_subscribe_signal(CAL_NOTI_REMINDER_CAHNGED,
cal_dbus_call_reminder_cb, user_data, NULL);
ci->cb = callback;
if (0 == is_matched) {
/* LCOV_EXCL_START */
- ERR("Not matched callback(0x%x)", callback);
+ ERR("Not matched callback(%p)", callback);
pthread_mutex_unlock(&cal_mutex_reminder);
return CALENDAR_ERROR_INVALID_PARAMETER;
/* LCOV_EXCL_STOP */
}
- DBG("remove reminder(0x%x)", callback);
+ DBG("remove reminder(%p)", callback);
callback_info_s *ci = (callback_info_s *)cursor->data;
cal_dbus_unsubscribe_signal(ci->id);
free(ci);
cursor = g_slist_next(cursor);
continue;
}
- DBG("called reminder(0x%x)", ci->cb);
+ DBG("called reminder(%p)", ci->cb);
ci->cb(stream, ci->user_data);
cursor = g_slist_next(cursor);
}
com_filter = (cal_composite_filter_s*)filter;
ret = _cal_filter_create_attribute(com_filter, property_id, match, CAL_FILTER_DOUBLE, &int_filter);
- RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d), match_value(%d)", property_id, match, match_value);
+ RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d), match_value(%lf)", property_id, match, match_value);
int_filter->value.d = match_value;
com_filter = (cal_composite_filter_s*)filter;
ret = _cal_filter_create_attribute(com_filter, property_id, match, CAL_FILTER_LLI, &int_filter);
- RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d), match_value(%d)", property_id, match, match_value);
+ RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d), match_value(%lld)", property_id, match, match_value);
int_filter->value.lli = match_value;
com_filter = (cal_composite_filter_s*)filter;
ret = _cal_filter_create_attribute(com_filter, property_id, match, CAL_FILTER_CALTIME, &int_filter);
- RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d), match_value(%d)", property_id, match, match_value);
+ RETVM_IF(CALENDAR_ERROR_NONE != ret, ret, "property_id(%d), match(%d)", property_id, match);
int_filter->value.caltime = match_value;
#define CAL_PRINT_TIMESTAMP gettimeofday(&timeval_e, NULL); \
timersub(&timeval_e, &timeval_s, &timeval_d); \
timeval_s = timeval_e; \
- DBG(COLOR_PURPLE "<<<<< (%03d.%03dsec)" COLOR_END, timeval_d.tv_sec % 1000, timeval_d.tv_usec/1000);
+ DBG(COLOR_PURPLE "<<<<< (%03d.%03dsec)" COLOR_END, (int)(timeval_d.tv_sec % 1000), (int)(timeval_d.tv_usec/1000));
#define CAL_PROFILE
#ifdef CAL_PROFILE
st.tm_min = n;
st.tm_sec = s;
*tt_alert = mktime(&st);
- DBG("datetime[%s] to %02d:%02d:%02d (%d)", datetime, h, n, s, *tt_alert);
+ DBG("datetime[%s] to %02d:%02d:%02d (%ld)", datetime, h, n, s, *tt_alert);
}
}
sqlite3_finalize(stmt);
}
break;
}
- DBG("alert_time(%d) = utime(%lld) - (tick(%d) * unit(%d))", *tt_alert, utime, tick, unit);
+ DBG("alert_time(%ld) = utime(%lld) - (tick(%d) * unit(%d))", *tt_alert, utime, tick, unit);
*tt_alert = utime - (tick * unit);
return CALENDAR_ERROR_NONE;
static int _alert_cb(alarm_id_t alarm_id, void *data)
{
CAL_FN_CALL();
- DBG("alarm_id (%ld)", alarm_id);
+ DBG("alarm_id (%d)", (int)alarm_id);
time_t tt_alert = 0;
cal_server_alarm_get_alert_time(alarm_id, &tt_alert);
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
if (CALENDAR_ERROR_NONE != ret) {
CAL_FREE(table_name);
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
if (CALENDAR_ERROR_NONE != ret) {
CAL_FREE(table_name);
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
&condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
CAL_FREE(projection);
return ret;
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
return ret;
/* LCOV_EXCL_STOP */
}
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */
ret = cal_db_query_create_condition(query, &condition, &bind_text);
if (CALENDAR_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
- ERR("cal_db_query_create_condition() Fail(%d), ret");
+ ERR("cal_db_query_create_condition() Fail(%d)", ret);
CAL_FREE(table_name);
return ret;
/* LCOV_EXCL_STOP */