Signed-off-by: zhongtao <zhongtao17@huawei.com> (cherry picked from commit 6d8610bd54520c4357e9b002b14a054a0ec66252)
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From cade2ae3b53848bbedb3f89ff45333f3871e878a Mon Sep 17 00:00:00 2001
|
|
From: jikai <jikai11@huawei.com>
|
|
Date: Thu, 25 Apr 2024 12:46:10 +0000
|
|
Subject: [PATCH 77/78] remove extra %s in CreateContainerLogSymlink
|
|
|
|
Signed-off-by: jikai <jikai11@huawei.com>
|
|
---
|
|
src/daemon/common/cri/cri_helpers.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/daemon/common/cri/cri_helpers.cc b/src/daemon/common/cri/cri_helpers.cc
|
|
index 5189ac00..d7ec9f36 100644
|
|
--- a/src/daemon/common/cri/cri_helpers.cc
|
|
+++ b/src/daemon/common/cri/cri_helpers.cc
|
|
@@ -552,7 +552,7 @@ void CreateContainerLogSymlink(const std::string &containerID, Errors &error)
|
|
if (symlink(realPath.c_str(), path.c_str()) != 0) {
|
|
SYSERROR("failed to create symbolic link %s to the container log file %s for container %s", path.c_str(), realPath.c_str(),
|
|
containerID.c_str());
|
|
- error.Errorf("failed to create symbolic link %s to the container log file %s for container %s: %s", path.c_str(),
|
|
+ error.Errorf("failed to create symbolic link %s to the container log file %s for container %s", path.c_str(),
|
|
realPath.c_str(), containerID.c_str());
|
|
}
|
|
}
|
|
--
|
|
2.25.1
|
|
|