int i;
- scf_logi("path0: %d, k0: %d ... path1: %d, k1: %d\n", path0->pins->size, k0, path1->pins->size, k1);
+ scf_logd("path0: %d, k0: %d ... path1: %d, k1: %d\n", path0->pins->size, k0, path1->pins->size, k1);
for (i = 0; i + k0 < path0->pins->size && i + k1 < path1->pins->size; i++)
SCF_XCHG(path0->pins->data[i + k0], path1->pins->data[i + k1]);
- scf_logi("path0: %d, k0: %d ... path1: %d, k1: %d, i: %d\n", path0->pins->size, k0, path1->pins->size, k1, i);
+ scf_logd("path0: %d, k0: %d ... path1: %d, k1: %d, i: %d\n", path0->pins->size, k0, path1->pins->size, k1, i);
if (i + k0 < path0->pins->size) {
}
}
- scf_logi("path0: %d, k0: %d ... path1: %d, k1: %d, i: %d\n", path0->pins->size, k0, path1->pins->size, k1, i);
return 0;
}
if (path1 == path0)
continue;
- scf_loge("i: %d, j: %d, path1: %p\n", i, j, path1);
- scf_loge("i: %d, j: %d, path1->pins: %p\n", i, j, path1->pins);
- scf_loge("i: %d, j: %d, path1->pins->size: %d\n\n", i, j, path1->pins->size);
-
p2 = path1->pins->data[0];
p3 = path1->pins->data[path1->pins->size - 1];
for (k = path1->pins->size - 1; k >= 0; k -= 2) {
p = path1->pins->data[k];
- if (p->lid == p1->lid)
+ if (p->lid == p0->lid)
break;
}
p2->cid, p2->id, p->cid, p->id,
p0->cid, p0->id, p1->cid, p1->id);
- scf_logi("path size: %d ... %d\n", path0->pins->size, path1->pins->size);
int ret = __topo_path_xchg(path0, 0, path1, k + 1);
if (ret < 0)
return ret;
- scf_logw("path size: %d ... %d\n", path0->pins->size, path1->pins->size);
if (path0->pins->size <= 0) {
- scf_loge("free path0: %d\n", path0->index);
-
if (scf_vector_del(paths, path0) < 0)
return -1;
p2->cid, p2->id, p3->cid, p3->id,
p ->cid, p ->id, p1->cid, p1->id);
- scf_logi("path size: %d ... %d, k: %d\n", path0->pins->size, path1->pins->size, k);
-
int ret = __topo_path_xchg(path0, k, path1, path1->pins->size);
if (ret < 0)
return ret;
- scf_logw("path size: %d ... %d, k: %d\n\n", path0->pins->size, path1->pins->size, k);
if (path0->pins->size <= 0) {
- scf_loge("free path0: %d\n", path0->index);
-
if (scf_vector_del(paths, path0) < 0)
return -1;