delete some logs
authoryu.dongliang <18588496441@163.com>
Wed, 8 Nov 2023 13:53:01 +0000 (21:53 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 8 Nov 2023 13:53:01 +0000 (21:53 +0800)
ses_graph.c
ses_layout.c

index 3c09d4af85760788aa056a847c35904e69e3d1de..e45d6d322d6ed2585cd25048242e72b2f5498d97 100644 (file)
@@ -223,9 +223,6 @@ static int __find_not_neighbor(scf_vector_t* graph, int k, ses_vertex_t** pp0, s
        for (i = 0; i < graph->size; i++) {
                v0        = graph->data[i];
 
-               ScfEcomponent* c0 = v0->data;
-               scf_loge("graph->size: %d, k: %d, c%ld->edges->size: %d\n", graph->size, k, c0->id, v0->edges->size);
-
                if (v0->edges->size > k)
                        continue;
 
@@ -234,9 +231,6 @@ static int __find_not_neighbor(scf_vector_t* graph, int k, ses_vertex_t** pp0, s
                for (j = i + 1; j < graph->size; j++) {
                        v1            = graph->data[j];
 
-                       ScfEcomponent* c1 = v1->data;
-                       scf_logi("graph->size: %d, k: %d, c%ld->edges->size: %d\n", graph->size, k, c1->id, v1->edges->size);
-
                        if (!scf_vector_find(v0->edges, v1)) {
                                assert(!scf_vector_find(v1->edges, v0));
                                break;
@@ -244,7 +238,6 @@ static int __find_not_neighbor(scf_vector_t* graph, int k, ses_vertex_t** pp0, s
 
                        v1 = NULL;
                }
-               printf("\n");
 
                if (v1) {
                        *pp0 = v0;
@@ -273,7 +266,6 @@ static ses_vertex_t* __max_neighbors(scf_vector_t* graph)
                }
        }
 
-       scf_loge("\n");
        return max;
 }
 
@@ -288,7 +280,7 @@ static int __graph_kcolor(scf_vector_t* graph, int k, scf_vector_t* colors)
        if (!deleted)
                return -ENOMEM;
 
-       scf_logw("graph->size: %d, k: %d\n", graph->size, k);
+       scf_logd("graph->size: %d, k: %d\n", graph->size, k);
 
        int ret = __kcolor_delete(graph, k, deleted);
        if (ret < 0)
@@ -302,7 +294,7 @@ static int __graph_kcolor(scf_vector_t* graph, int k, scf_vector_t* colors)
 
                scf_vector_free(deleted);
                deleted = NULL;
-               scf_logw("graph->size: %d, k: %d\n\n", graph->size, k);
+               scf_logd("graph->size: %d, k: %d\n\n", graph->size, k);
                return 0;
        }
 
@@ -324,7 +316,7 @@ static int __graph_kcolor(scf_vector_t* graph, int k, scf_vector_t* colors)
 
                ScfEcomponent* c0 = v0->data;
                ScfEcomponent* c1 = v1->data;
-               scf_logi("graph->size: %d, k: %d, c%ld, c%ld, color: %ld\n", graph->size, k, c0->id, c1->id, v0->color);
+               scf_logd("graph->size: %d, k: %d, c%ld, c%ld, color: %ld\n", graph->size, k, c0->id, c1->id, v0->color);
 
                __color_del(__colors, v0->color);
 
@@ -377,7 +369,7 @@ overflow:
 
        scf_vector_free(deleted);
        deleted = NULL;
-       scf_logw("graph->size: %d, k: %d\n\n", graph->size, k);
+       scf_logd("graph->size: %d, k: %d\n\n", graph->size, k);
        return 0;
 
 error:
index cb5137163b7871f8b68ba302b4c9244d2f9c622b..1d8d37542e64cc30f29a377e5e4f9717671e0104 100644 (file)
@@ -545,7 +545,7 @@ static void __ses_layout_path2(ScfEfunction* f, ses_path_t* path, ses_path_t* ba
                                        ib = __ses_find_eline_index(f, pb->lid);
                                        n  = __ses_find_eline_index(f, p->lid);
 
-                                       scf_loge("**************** c%ldp%ld, ic: %ld, ib: %ld, ie: %ld\n", p->cid, p->id, n, ib, ie);
+                                       scf_logw("**************** c%ldp%ld, ic: %ld, ib: %ld, ie: %ld\n", p->cid, p->id, n, ib, ie);
                                }
                        }
 #endif
@@ -1183,7 +1183,7 @@ static int __ses_de_cross(ScfEfunction* f, int d)
 
        for (i = 0; i < f->n_components; i++) {
                c  =        f->components[i];
-               scf_logi("N: %ld, i: %ld, c%ld->color: %ld\n", N, i, c->id, c->color);
+               scf_logd("N: %ld, i: %ld, c%ld->color: %ld\n", N, i, c->id, c->color);
        }
 
        return 0;