Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: device/serial/serial_io_handler_win.cc

Issue 1147223002: Log serial read and write errors on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_win.cc
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc
index d6bddb273aa9b1757173ba55ae9cdcdf3fcd612a..60a2a332745679ee2c6eba789096ef26b3227a37 100644
--- a/device/serial/serial_io_handler_win.cc
+++ b/device/serial/serial_io_handler_win.cc
@@ -211,6 +211,7 @@ void SerialIoHandlerWin::WriteImpl() {
NULL,
&write_context_->overlapped);
if (!ok && GetLastError() != ERROR_IO_PENDING) {
+ VPLOG(1) << "Write failed";
QueueWriteCompleted(0, serial::SEND_ERROR_SYSTEM_ERROR);
}
}
@@ -301,6 +302,7 @@ void SerialIoHandlerWin::OnIOCompleted(
NULL,
&read_context_->overlapped);
if (!ok && GetLastError() != ERROR_IO_PENDING) {
+ VPLOG(1) << "Read failed";
ReadCompleted(0, serial::RECEIVE_ERROR_SYSTEM_ERROR);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698