summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-12 08:08:15 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-03-12 08:08:15 -0700
commit57ce970c70d9a0ea05d54e5acf0d7946d131b3f9 (patch)
treeb681a8ae10944e65fc15c63422a08becd43c33cb
parentac0584674c9fe767e2e805bbb57f3c17f35b13b4 (diff)
parent30a41c2a30d28ec1d1e5ab1df5fb3060c9ee0cdc (diff)
downloadwifilogd-57ce970c70d9a0ea05d54e5acf0d7946d131b3f9.tar.gz
wifilogd: use PLOG instead of LOG strerror. am: 53ec1e84b1
am: 30a41c2a30 Change-Id: Iff2e6e3be5c1ac5632bb0c990396c06d320548f0
-rw-r--r--main_loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main_loop.cpp b/main_loop.cpp
index 8ad030a..b14d3d8 100644
--- a/main_loop.cpp
+++ b/main_loop.cpp
@@ -44,7 +44,7 @@ MainLoop::MainLoop(const std::string& socket_name, std::unique_ptr<Os> os,
Os::Errno err;
std::tie(sock_fd_, err) = os_->GetControlSocket(socket_name);
if (err) {
- LOG(FATAL) << "Failed to get control socket: " << std::strerror(errno);
+ PLOG(FATAL) << "Failed to get control socket";
}
}
@@ -80,7 +80,7 @@ void MainLoop::ProcessError(Os::Errno err) {
// Any other error is unexpected, and assumed to be non-recoverable.
// (If, e.g., our socket is in a bad state, then we won't be able to receive
// any new log messages.)
- LOG(FATAL) << "Unexpected error: " << std::strerror(err);
+ PLOG(FATAL) << "Unexpected error";
}
} // namespace wifilogd