14 Star 5 Fork 32

src-openEuler/gazelle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0313-DUMP-fix-abnomal-printing-in-the-dump-process.patch 864 Bytes
一键复制 编辑 原始数据 按行查看 历史
From b514eab8bb012067d6f40f3d6a7ec925e9b2093e Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Fri, 10 Jan 2025 14:04:44 +0800
Subject: [PATCH] DUMP: fix abnomal printing in the dump process.
---
src/lstack/core/lstack_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lstack/core/lstack_dump.c b/src/lstack/core/lstack_dump.c
index 2a4477d..56eb305 100644
--- a/src/lstack/core/lstack_dump.c
+++ b/src/lstack/core/lstack_dump.c
@@ -94,7 +94,7 @@ static int dump_command_excute(const char *command)
/* get and print command output */
if (fgets(buffer, sizeof(buffer), fp) != NULL) {
- LSTACK_LOG(INFO, LSTACK, "\r %s", buffer);
+ LSTACK_LOG(INFO, LSTACK, "\r\033[K %s", buffer);
} else if (feof(fp)) {
break;
} else {
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gazelle.git
git@gitee.com:src-openeuler/gazelle.git
src-openeuler
gazelle
gazelle
master

搜索帮助