From: yu.dongliang <18588496441@163.com> Date: Mon, 23 Oct 2023 13:01:14 +0000 (+0800) Subject: delete some logs X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=579077ed46c5af174e644b2c88764bb84056bba4;p=ses.git delete some logs --- diff --git a/ses_step_topo.c b/ses_step_topo.c index e336659..a247272 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -32,7 +32,7 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ if (SCF_EDA_NPN != rc->type || SCF_EDA_NPN_E != rp->id) rp->vflag = 1; - scf_logi("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", rp->cid, rp->id, rp->lid, rp->vflag, rp->pflag); + scf_logd("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", rp->cid, rp->id, rp->lid, rp->vflag, rp->pflag); int ret = 0; @@ -45,12 +45,12 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ if (SCF_EDA_NPN == rc->type && SCF_EDA_NPN_E != np->id) continue; - scf_logi("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", np->cid, np->id, np->lid, np->vflag, np->pflag); + scf_logd("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", np->cid, np->id, np->lid, np->vflag, np->pflag); el = f->elines[np->lid]; if (SCF_EDA_PIN_POS & el->flags) { - scf_loge("pos l%ld\n\n", el->id); + scf_logd("pos l%ld\n\n", el->id); ret = SCF_EDA_Path_OFF; continue; @@ -69,7 +69,7 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ np->vflag = 1; if (SCF_EDA_PIN_NEG & el->flags) { - scf_loge("neg l%ld\n\n", el->id); + scf_logd("neg l%ld\n\n", el->id); if (scf_vector_add(__paths, *ppath) < 0) return -ENOMEM; @@ -91,7 +91,7 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ p = c->pins [el->pins[j + 1]]; if (p->pflag && p != np && *ppath) { - scf_loge("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id); + scf_logd("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id); if ((*ppath)->pins->size > 0) { if (scf_vector_add(__paths, *ppath) < 0) @@ -140,10 +140,10 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ if (SCF_EDA_Path_OFF == ret) { rp->vflag = 0; - scf_logw("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid); + scf_logd("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid); } else if (SCF_EDA_Status_OFF == ret) - scf_loge("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid); + scf_logd("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid); } return ret; @@ -255,7 +255,7 @@ bridge_sp0: for (i = 0; i < path->bridges->size; i++) { sp0 = path->bridges->data[i]; - scf_loge("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index); + scf_logd("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index); } if (path->bridges->size <= 0) { @@ -398,8 +398,6 @@ static int _topo_print(scf_vector_t* paths) for (i = 0; i < paths->size; i++) { path = paths->data[i]; - scf_logi("i: %d, path->type: %d\n", i, path->type); - ses_path_print(path); printf("\n"); @@ -450,14 +448,12 @@ static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t* if (c == B) continue; - scf_logw("i: %ld\n", i); + scf_logd("i: %ld\n", i); int ret = __dfs_path(f, c, p, ctx->paths, &path); if (ret < 0) return ret; - printf("ret: %d\n\n", ret); - if (!path) continue;