23 formation_params_t *form_params = (formation_params_t *) *data;
24 uint32_t data_size =
sizeof(formation_params_t) + (
sizeof(uint16_t) *
25 (form_params->ff_prob_size + form_params->lat_prob_size));
28 form_params = spin1_malloc(data_size);
29 if (form_params ==
NULL) {
30 log_error(
"Out of memory when allocating parameters");
34 log_debug(
"Formation distance dependent %u bytes, grid=(%u, %u), %u ff probs, %u lat probs",
35 data_size, form_params->grid_x, form_params->grid_y,
36 form_params->ff_prob_size, form_params->lat_prob_size);