You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2022/01/17 07:21:57 UTC
[hadoop] branch branch-3.2 updated: YARN-11055. Add missing newline in cgroups-operations.c (#3851)
This is an automated email from the ASF dual-hosted git repository.
aajisaka pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 7621207 YARN-11055. Add missing newline in cgroups-operations.c (#3851)
7621207 is described below
commit 76212079c9ca93c9df054d47f7513ed94744da24
Author: Gera Shegalov <ge...@apache.org>
AuthorDate: Sun Jan 16 23:20:48 2022 -0800
YARN-11055. Add missing newline in cgroups-operations.c (#3851)
Signed-off-by: Akira Ajisaka <aa...@apache.org>
(cherry picked from commit a94e9fcbde123edd96dd8b0009cf3618e2b578a7)
---
.../impl/modules/cgroups/cgroups-operations.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/cgroups/cgroups-operations.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/cgroups/cgroups-operations.c
index ea1d36d..2c17ef4 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/cgroups/cgroups-operations.c
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/cgroups/cgroups-operations.c
@@ -114,7 +114,7 @@ int update_cgroups_parameters(
if (!full_path) {
fprintf(ERRORFILE,
- "Failed to get cgroups path to write, it should be a configuration issue");
+ "Failed to get cgroups path to write, it should be a configuration issue\n");
failure = 1;
goto cleanup;
}
@@ -127,7 +127,7 @@ int update_cgroups_parameters(
// Make sure file exists
struct stat sb;
if (stat(full_path, &sb) != 0) {
- fprintf(ERRORFILE, "CGroups: Could not find file to write, %s", full_path);
+ fprintf(ERRORFILE, "CGroups: Could not find file to write, %s\n", full_path);
failure = 1;
goto cleanup;
}
@@ -139,18 +139,18 @@ int update_cgroups_parameters(
FILE *f;
f = fopen(full_path, "a");
if (!f) {
- fprintf(ERRORFILE, "CGroups: Failed to open cgroups file, %s", full_path);
+ fprintf(ERRORFILE, "CGroups: Failed to open cgroups file, %s\n", full_path);
failure = 1;
goto cleanup;
}
if (fprintf(f, "%s", value) < 0) {
- fprintf(ERRORFILE, "CGroups: Failed to write cgroups file, %s", full_path);
+ fprintf(ERRORFILE, "CGroups: Failed to write cgroups file, %s\n", full_path);
fclose(f);
failure = 1;
goto cleanup;
}
if (fclose(f) != 0) {
- fprintf(ERRORFILE, "CGroups: Failed to close cgroups file, %s", full_path);
+ fprintf(ERRORFILE, "CGroups: Failed to close cgroups file, %s\n", full_path);
failure = 1;
goto cleanup;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org