代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。