Commit 798d59f6 authored by Ben Gamari's avatar Ben Gamari 🐢

rts: Add more debug output to failed path in onIOComplete

This will help track down #17035.
parent 149e2a3a
......@@ -67,12 +67,13 @@ onIOComplete(unsigned int reqID,
dwRes = WaitForSingleObject(completed_table_sema, INFINITE);
switch (dwRes) {
case WAIT_OBJECT_0:
case WAIT_ABANDONED:
break;
default:
/* Not likely */
fprintf(stderr,
"onIOComplete: failed to grab table semaphore, "
"dropping request 0x%x\n", reqID);
"onIOComplete: failed to grab table semaphore (res=%d, err=%d), "
"dropping request 0x%x\n", reqID, dwRes, GetLastError());
fflush(stderr);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment