{
if (pos == NULL) return;
- LOG_GPS(DBG_LOW, "set_last_position[%d]", pos->timestamp);
+ LOG_GPS(DBG_LOW, "set_last_position[%ld]", pos->timestamp);
char location[128] = {0,};
snprintf(location, sizeof(location), "%.6lf;%.6lf;%.2lf;%.2lf;%.2lf;%.2lf;%.2lf;", pos->latitude, pos->longitude, pos->altitude, pos->speed, pos->bearing, pos->hor_accuracy, pos->ver_accuracy);
last_location[index] = (char *)strtok_r(NULL, ";", &last);
}
- LOG_GPS(DBG_LOW, "get_last_position[%d]", last_pos->timestamp);
+ LOG_GPS(DBG_LOW, "get_last_position[%ld]", last_pos->timestamp);
}
void gps_set_last_mock(int timestamp, double lat, double lon, double alt, double spd, double dir, double h_acc)
GHashTable *interval_table = (GHashTable *) value;
dynamic_interval_updator_user_data *updator_ud = (dynamic_interval_updator_user_data *)userdata;
lbs_server_s *lbs_server = updator_ud->lbs_server;
- int method = updator_ud->method;
g_hash_table_foreach(interval_table, (GHFunc) find_min_interval_foreach_cb, (gpointer) lbs_server);
- LOG_GPS(DBG_LOW, "foreach_cb, client:[%s] temp_min[%u], hash_size[%u]", method, (char *)key, lbs_server->temp_minimum_interval, g_hash_table_size(interval_table));
+ LOG_GPS(DBG_LOW, "foreach_cb, client:[%s] temp_min[%u], hash_size[%u]", (char *)key, lbs_server->temp_minimum_interval, g_hash_table_size(interval_table));
}
static void __add_interval_table(GHashTable *interval_table, guint interval)
memset(&lbs_server->mock_pos, 0x00, sizeof(NpsManagerPositionExt));
memcpy(&lbs_server->mock_pos, &g_mock_position, sizeof(NpsManagerPositionExt));
g_mock_position.fields = LBS_POSITION_EXT_FIELDS_NONE;
- LOG_SEC("[%ld] lat = %lf, lng = %lf", lbs_server->mock_pos.timestamp, lbs_server->mock_pos.latitude, lbs_server->mock_pos.longitude);
+ LOG_SEC("[%d] lat = %lf, lng = %lf", lbs_server->mock_pos.timestamp, lbs_server->mock_pos.latitude, lbs_server->mock_pos.longitude);
if (lbs_server->mock_pos.latitude >= -90 && lbs_server->mock_pos.latitude <= 90)
lbs_server->mock_pos.fields |= LBS_POSITION_EXT_FIELDS_LATITUDE;