delete some logs
authoryu.dongliang <18588496441@163.com>
Mon, 23 Oct 2023 13:01:14 +0000 (21:01 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 23 Oct 2023 13:01:14 +0000 (21:01 +0800)
ses_step_topo.c

index e336659057c302d28c66f086990efcf596ffa685..a247272f7be272fa8730384b744ae2c17a2ed332 100644 (file)
@@ -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;