From b1f63ce874de0c00ba8764f9c7967cf467a236b4 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 8 Jun 2016 11:02:50 +0200 Subject: [PATCH] Fix typos in comments and debug output in select_stuff::wait Signed-off-by: Corinna Vinschen --- winsup/cygwin/select.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 2329021cb..8ea02f541 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -375,10 +375,10 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds, next_while:; } - /* Optionally create and set a waitable timer, if a finite timeout has + /* Optionally create and set a waitable timer if a finite timeout has been requested. Recycle cw_timer in the cygtls area so we only have to create the timer once per thread. Since WFMO checks the handles - in order, we appand the timer as last object, otherwise it's preferred + in order, we append the timer as last object, otherwise it's preferred over actual events on the descriptors. */ HANDLE &wait_timer = _my_tls.locals.cw_timer; if (us > 0LL) @@ -399,7 +399,7 @@ next_while:; 0, NULL); if (!NT_SUCCESS (status)) { - select_printf ("%y = NtSetTimer (%Y)\n", + select_printf ("%y = NtSetTimer (%D)\n", status, ms_clock_ticks.QuadPart); return select_error; } -- 2.43.5