diff options
author | Elliott Hughes <enh@google.com> | 2019-03-08 13:24:49 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-03-08 13:25:20 -0800 |
commit | 53ec1e84b176c5b8abee228812108f8ec74bb765 (patch) | |
tree | b681a8ae10944e65fc15c63422a08becd43c33cb | |
parent | d23e29c24c0d4141dca980e948f1e7982cb8b10d (diff) | |
download | wifilogd-53ec1e84b176c5b8abee228812108f8ec74bb765.tar.gz |
wifilogd: use PLOG instead of LOG strerror.android-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1android-o-mr1-iot-release-1.0.12android-o-mr1-iot-release-1.0.10oreo-mr1-iot-release
Bug: None
Test: builds
Change-Id: I948c255bdd1fc2dbcf8467da9d2ebe7fff62e18f
-rw-r--r-- | main_loop.cpp | 4 |
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 |