From 9ab938e77870195e0943a67a27fea8a3f3333227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Sat, 22 Jun 2019 17:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E8=BE=93=E5=87=BAkni=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/kni_entry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index 9b0591a..059a120 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -1752,8 +1752,8 @@ static void keepalive_replay_data_free_cb(void *data) FREE(&data); } - extern "C" int kni_init(){ + char *kni_git_verison = (char*)KNI_GIT_VERSION; const char *profile = "./conf/kni/kni.conf"; const char *section = "global"; //init logger @@ -1786,6 +1786,9 @@ extern "C" int kni_init(){ printf("Failed at create logger: %s", log_path); goto error_out; } + //kni_git_log + KNI_LOG_ERROR(local_logger, "----------kni version is %s-----------", kni_git_verison); + ret = MESA_load_profile_int_nodef(profile, section, "tfe_node_count", &tfe_node_count); if(ret < 0){ KNI_LOG_ERROR(local_logger, "MESA_prof_load: tfe_node_count not set, profile is %s, section is %s", profile, section);