int eline_cmp(const void* v0, const void* v1)
{
- const ScfEline* el0 = v0;
- const ScfEline* el1 = v1;
+ const ScfEline* el0 = *(const ScfEline**)v0;
+ const ScfEline* el1 = *(const ScfEline**)v1;
if (el0->n_conns < el1->n_conns)
return 1;
scf_econn__free(ec);
return -ENOMEM;
}
+
+ ec = NULL;
}
}
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
- scf_logi("i: %ld, el0: %ld, n_pins: %ld\n", i, el0->id, el0->n_pins);
+ scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld\n", i, el0->id, el0->n_conns, el0->n_pins);
for (j = 0; j < el0->n_conns; j++) {
ec = el0->conns[j];