if (-1 == pid)
SLOG(LOG_DEBUG, vc_db_tag(), "[SQL] %s", sql);
else if (NULL != appid)
- SLOG(LOG_DEBUG, vc_db_tag(), "[SQL] SELECT * FROM vc_result WHERE appid = %d;", appid);
+ SLOG(LOG_DEBUG, vc_db_tag(), "[SQL] SELECT * FROM vc_result WHERE appid = %s;", appid);
else
SLOG(LOG_DEBUG, vc_db_tag(), "[SQL] SELECT * FROM vc_result WHERE pid = %d;", pid);
if (g_time_flag > 0 || g_date_flag > 0) {
*result = mktime(&td);
- SLOG(LOG_DEBUG, TAG_VCCMD, "Timestamp in the text = %d", *result);
+ SLOG(LOG_DEBUG, TAG_VCCMD, "Timestamp in the text = %ld", *result);
SLOG(LOG_DEBUG, TAG_VCCMD, "%d-%d-%d (%s), %d:%d:%d",
td.tm_year + 1900, td.tm_mon + 1, td.tm_mday, day_name[td.tm_wday], td.tm_hour, td.tm_min, td.tm_sec, td.tm_yday);
parser = json_parser_new();
json_parser_load_from_file(parser, file_path, &err_msg);
if (err_msg) {
- SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to load json file, file_path(%s), err_msg(%s)", file_path, err_msg);
+ SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to load json file, file_path(%s), err_msg(%s)", file_path, err_msg->message);
g_error_free(err_msg);
g_object_unref(parser);
return VC_ERROR_OPERATION_FAILED;
DBUS_TYPE_INVALID);
if (0 == ret) {
- SLOG(LOG_DEBUG, TAG_VCD, "[OUT SUCCESS] Result(%d)");
+ SLOG(LOG_DEBUG, TAG_VCD, "[OUT SUCCESS] Result(%d)", ret);
} else {
SLOG(LOG_ERROR, TAG_VCD, "[OUT ERROR] Result(%d)", ret);
}
}
if (0 == g_buffer_count || 0 == g_buffer_count % 50) {
- SLOG(LOG_WARN, TAG_VCD, "[Recorder][%d] Recording... : read_size(%d)", g_buffer_count, voice_data->length);
+ SLOG(LOG_WARN, TAG_VCD, "[Recorder][%d] Recording... : read_size(%ld)", g_buffer_count, voice_data->length);
if (100000 == g_buffer_count)
g_buffer_count = 0;