[1/3] Add trace calls to serial port code.

Michael Karcher wine at mkarcher.dialup.fu-berlin.de
Mon May 12 04:21:59 CDT 2008


The trace calls added here help finding out what events wine
detects on the serial port.
---

supercedes the "Stop flooding with EV_TXEMPTY and EV_RXCHAR"
patch.

Sorry for the delay in submission. Original mail was misaddressed.

 dlls/ntdll/serial.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index bdb47e4..7aeb01c 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -366,6 +366,7 @@ static NTSTATUS get_status(int fd, SERIAL_STATUS* ss)
 #else
     ss->AmountInInQueue = 0; /* FIXME: find a different way to find out */
 #endif
+    TRACE("In: %d, Out: %d\n",ss->AmountInInQueue, ss->AmountInOutQueue);
     return status;
 }
 
@@ -941,6 +942,7 @@ static DWORD WINAPI check_events(int fd, DWORD mask,
 	TRACE("OUTQUEUE %d, Transmitter %sempty\n",
               queue, (ret & EV_TXEMPTY) ? "" : "not ");
     }
+    TRACE("ret=%03x\n",ret);
     return ret & mask;
 }
 
-- 
1.5.5.1




More information about the wine-patches mailing list