summaryrefslogtreecommitdiffstats
path: root/init/service.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-08 12:34:53 -0800
committerElliott Hughes <enh@google.com>2019-03-08 12:34:53 -0800
commit076305e4fbb0c4ff5322a732eea4b3d24239d1b4 (patch)
tree16f65a98047a367dc2a95f16c0d65c51e88b482f /init/service.cpp
parent6c5c085e4190c70474ad85b711ffb7b0b682babf (diff)
downloadsystem_core-076305e4fbb0c4ff5322a732eea4b3d24239d1b4.tar.gz
system_core-076305e4fbb0c4ff5322a732eea4b3d24239d1b4.tar.bz2
system_core-076305e4fbb0c4ff5322a732eea4b3d24239d1b4.zip
init: use PLOG rather than strerror.
Test: builds Change-Id: Ifdba8e7fa4cd5c852946bb0f398382f2d64674cd
Diffstat (limited to 'init/service.cpp')
-rw-r--r--init/service.cpp2
1 files changed, 1 insertions, 1 deletions
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<Success> 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";
}
}