Index: mojo/system/raw_channel_posix.cc |
diff --git a/mojo/system/raw_channel_posix.cc b/mojo/system/raw_channel_posix.cc |
index 2b1a3582f86e439979635ff64fc9e3f30701daab..cebbc9d495642ce48ab1e6abe03be0d7ce8834fb 100644 |
--- a/mojo/system/raw_channel_posix.cc |
+++ b/mojo/system/raw_channel_posix.cc |
@@ -111,8 +111,7 @@ RawChannel::IOResult RawChannelPosix::Read(size_t* bytes_read) { |
// |read_result == 0| means "end of file". |
if (read_result == 0 || (errno != EAGAIN && errno != EWOULDBLOCK)) { |
- if (read_result != 0) |
- PLOG(ERROR) << "read"; |
+ PLOG_IF(ERROR, read_result != 0) << "read"; |
// Make sure that |OnFileCanReadWithoutBlocking()| won't be called again. |
read_watcher_.reset(); |
@@ -174,8 +173,7 @@ RawChannel::IOResult RawChannelPosix::WriteNoLock(size_t* bytes_written) { |
} |
if (errno != EAGAIN && errno != EWOULDBLOCK) { |
- PLOG(ERROR) << "write of size " |
- << write_buffer_no_lock()->GetTotalBytesToWrite(); |
+ PLOG(ERROR) << "write"; |
return IO_FAILED; |
} |