From 076305e4fbb0c4ff5322a732eea4b3d24239d1b4 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 8 Mar 2019 12:34:53 -0800 Subject: [PATCH] init: use PLOG rather than strerror. Test: builds Change-Id: Ifdba8e7fa4cd5c852946bb0f398382f2d64674cd --- init/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/service.cpp b/init/service.cpp index 2186a851f..cba42c4fd 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -1059,7 +1059,7 @@ Result Service::Start() { std::string oom_str = std::to_string(oom_score_adjust_); std::string oom_file = StringPrintf("/proc/%d/oom_score_adj", pid); if (!WriteStringToFile(oom_str, oom_file)) { - PLOG(ERROR) << "couldn't write oom_score_adj: " << strerror(errno); + PLOG(ERROR) << "couldn't write oom_score_adj"; } }