lix/libutil/cgroup: remove trailing \n in cgroup.controllers
Otherwise, this result in debug traces with a \n cutting the list of controllers. Change-Id: I8aba6379d335c4edab9d9ddb3fb411813d8dc426 Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
@@ -266,7 +266,7 @@ CgroupAvailableFeatureSet detectAvailableCgroupFeatures()
|
||||
static std::vector<std::string> readControllers(const std::filesystem::path & cgroupPath)
|
||||
{
|
||||
return tokenizeString<std::vector<std::string>>(
|
||||
readFile(cgroupPath / "cgroup.controllers"), " "
|
||||
trim(readFile(cgroupPath / "cgroup.controllers")), " "
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user