diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-26 01:26:27 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-26 01:26:27 +0000 |
commit | b4ac96e2632c42eeb274a2ce8d80f0c269c40acf (patch) | |
tree | e3804652c82133c70211f1627d54167812c15e59 /mojo/system | |
parent | 9ca50c9f36065f24fb1e39dbbf6f09b52eac285e (diff) | |
download | chromium_src-b4ac96e2632c42eeb274a2ce8d80f0c269c40acf.zip chromium_src-b4ac96e2632c42eeb274a2ce8d80f0c269c40acf.tar.gz chromium_src-b4ac96e2632c42eeb274a2ce8d80f0c269c40acf.tar.bz2 |
Mojo: Fix incorrect PLOG in raw_channel_win.cc.
Oops.
R=yzshen@chromium.org
Review URL: https://codereview.chromium.org/257763009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266314 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/system')
-rw-r--r-- | mojo/system/raw_channel_win.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mojo/system/raw_channel_win.cc b/mojo/system/raw_channel_win.cc index 8568e8e..fe776ea 100644 --- a/mojo/system/raw_channel_win.cc +++ b/mojo/system/raw_channel_win.cc @@ -298,7 +298,8 @@ void RawChannelWin::RawChannelIOHandler::OnReadCompleted(DWORD bytes_read, if (error != ERROR_SUCCESS) { DCHECK_EQ(bytes_read, 0u); - PLOG_IF(ERROR, error != ERROR_BROKEN_PIPE) << "ReadFile"; + LOG_IF(ERROR, error != ERROR_BROKEN_PIPE) + << "ReadFile: " << logging::SystemErrorCodeToString(error); owner_->OnReadCompleted(false, 0); } else { DCHECK_GT(bytes_read, 0u); @@ -326,7 +327,7 @@ void RawChannelWin::RawChannelIOHandler::OnWriteCompleted(DWORD bytes_written, } if (error != ERROR_SUCCESS) { - LOG(ERROR) << "WriteFile failed: " << error; + LOG(ERROR) << "WriteFile: " << logging::SystemErrorCodeToString(error); owner_->OnWriteCompleted(false, 0); } else { owner_->OnWriteCompleted(true, bytes_written); @@ -364,7 +365,8 @@ RawChannel::IOResult RawChannelWin::Read(size_t* bytes_read) { DCHECK_EQ(bytes_read_dword, 0u); DWORD error = GetLastError(); if (error != ERROR_IO_PENDING) { - LOG_IF(ERROR, error != ERROR_BROKEN_PIPE) << "ReadFile failed: " << error; + LOG_IF(ERROR, error != ERROR_BROKEN_PIPE) + << "ReadFile: " << logging::SystemErrorCodeToString(error); return IO_FAILED; } } |