1 Star 0 Fork 32

shafeipaozi/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0159-DFX-adapt-testcase-for-gazellectl-connect-failed.patch 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
From f082b20ee9bab301fb21f2a40c32ca031f6177af Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Tue, 26 Mar 2024 10:40:00 +0800
Subject: [PATCH] DFX: adapt testcase for gazellectl connect failed
---
src/ltran/ltran_dfx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ltran/ltran_dfx.c b/src/ltran/ltran_dfx.c
index 91c6063..073dfa7 100644
--- a/src/ltran/ltran_dfx.c
+++ b/src/ltran/ltran_dfx.c
@@ -361,10 +361,10 @@ static int dfx_connect_probe(void)
return 0;
}
- printf("Connect lstack(path:%s), errno: %d; Connect ltran(path:%s) failed, errno: %d\n",
+ printf("Connect lstack(path:%s) failed, errno: %d; Connect ltran(path:%s) failed, errno: %d\n",
g_lstack_unix_path, -ret2, g_ltran_unix_path, -ret1);
- printf("Please ensure the process is started; If use ltran mode, \
- set use_ltran=1 in lstack.conf, otherwise set use_ltran=0\n");
+ printf("Please ensure the process is started; If use ltran mode, "
+ "set use_ltran=1 in lstack.conf, otherwise set use_ltran=0\n");
return -1;
}
@@ -1860,7 +1860,7 @@ static int32_t parse_dfx_cmd_args(int32_t argc, char *argv[], struct gazelle_sta
if (strcmp(param, "lstack") == 0) {
ret = dfx_connect_probe();
if (ret < 0) {
- exit(0);
+ exit(-1);
}
g_use_ltran = ret;
num_cmd = parse_dfx_lstack_args(argc, argv, req_msg);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shafeipaozi/gazelle.git
git@gitee.com:shafeipaozi/gazelle.git
shafeipaozi
gazelle
gazelle
master

搜索帮助