- for (j = 0; j < ctx->num_enabled_probes; j++) {
- g_string_append_printf(ctx->out, "%s: ",
- (char *)g_ptr_array_index(ctx->probelist, j));
+ for (l = analog->probes, p = 0; l; l = l->next, p++) {
+ probe = l->data;
+ g_string_append_printf(*out, "%s: ", probe->name);