From 08b4d32139709989e41940a9e4f158cc2276c732 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 14 Mar 2019 20:06:36 -0700 Subject: [PATCH] libprocessgroup: PLOG already includes strerror(errno). Test: builds Change-Id: Ic1fe6b46144f7dbeb7ffba5534d94b4dae192d5c --- libprocessgroup/task_profiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libprocessgroup/task_profiles.cpp b/libprocessgroup/task_profiles.cpp index dcf53f9b3..f1fbcdebe 100644 --- a/libprocessgroup/task_profiles.cpp +++ b/libprocessgroup/task_profiles.cpp @@ -202,7 +202,7 @@ bool SetCgroupAction::ExecuteForProcess(uid_t uid, pid_t pid) const { std::string procs_path = controller_->GetProcsFilePath(path_, uid, pid); unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(procs_path.c_str(), O_WRONLY | O_CLOEXEC))); if (tmp_fd < 0) { - PLOG(WARNING) << "Failed to open " << procs_path << ": " << strerror(errno); + PLOG(WARNING) << "Failed to open " << procs_path; return false; } if (!AddTidToCgroup(pid, tmp_fd)) {