From 208d87e51863e6f00649526a86fd29eab67fe030 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 21 Oct 2023 14:34:28 +0800 Subject: [PATCH] __topo_path_bridges() --- ses_step_topo.c | 4 ++-- ses_utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ses_step_topo.c b/ses_step_topo.c index cd9b175..e336659 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -200,7 +200,7 @@ static int __topo_path_bridges(ScfEfunction* f, ses_path_t* path) sp0 = path->childs->data[i]; for (j = i + 1; j < path->childs->size; ) { - sp1 = path->childs->data[i]; + sp1 = path->childs->data[j]; if (sp0->parent_p0 <= sp1->parent_p0 && sp0->parent_p1 >= sp1->parent_p1) { j++; @@ -255,7 +255,7 @@ bridge_sp0: for (i = 0; i < path->bridges->size; i++) { sp0 = path->bridges->data[i]; - scf_logw("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index); + scf_loge("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index); } if (path->bridges->size <= 0) { diff --git a/ses_utils.c b/ses_utils.c index 0e58df1..d65442f 100644 --- a/ses_utils.c +++ b/ses_utils.c @@ -360,7 +360,7 @@ void ses_path_print(ses_path_t* path) for (i = 0; i < path->bridges->size; i++) { path2 = path->bridges->data[i]; - printf("\033[32mbridge: %d, n_diodes: %d, parent: %d, \033[0m", path2->index, path2->n_diodes, path->index); + printf("\033[33mbridge: %d, n_diodes: %d, parent: %d, \033[0m", path2->index, path2->n_diodes, path->index); ses_path_print(path2); } -- 2.25.1