From: yu.dongliang <18588496441@163.com> Date: Wed, 8 Nov 2023 13:53:01 +0000 (+0800) Subject: delete some logs X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=1f15b96df32190ce74e8212a4df207f896b4f995;p=ses.git delete some logs --- diff --git a/ses_graph.c b/ses_graph.c index 3c09d4a..e45d6d3 100644 --- a/ses_graph.c +++ b/ses_graph.c @@ -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: diff --git a/ses_layout.c b/ses_layout.c index cb51371..1d8d375 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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;