Alexandre Julliard : ntdll: Don't print traces from async I/O callbacks.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 29 08:14:47 CDT 2007


Module: wine
Branch: master
Commit: 1b57c3bf9071f6d3fd56b042357074d7a9f89acf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1b57c3bf9071f6d3fd56b042357074d7a9f89acf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jun 29 13:40:42 2007 +0200

ntdll: Don't print traces from async I/O callbacks.

---

 dlls/ntdll/directory.c |    5 -----
 dlls/ntdll/file.c      |   12 ------------
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 9975455..d4ccf5f 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -2187,8 +2187,6 @@ static NTSTATUS read_changes_apc( void *user, PIO_STATUS_BLOCK iosb, NTSTATUS st
     NTSTATUS ret = STATUS_SUCCESS;
     int len, action, i;
 
-    TRACE("%p %p %08x\n", info, iosb, status);
-
     SERVER_START_REQ( read_change )
     {
         req->handle = info->FileHandle;
@@ -2218,9 +2216,6 @@ static NTSTATUS read_changes_apc( void *user, PIO_STATUS_BLOCK iosb, NTSTATUS st
         pfni->Action = action;
         pfni->FileNameLength = len * sizeof (WCHAR);
         pfni->FileName[len] = 0;
-
-        TRACE("action = %d name = %s\n", pfni->Action,
-              debugstr_w(pfni->FileName) );
         len = sizeof (*pfni) - sizeof (DWORD) + pfni->FileNameLength;
     }
     else
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 2f23862..e84490f 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -324,8 +324,6 @@ static NTSTATUS FILE_AsyncReadService(void *user, PIO_STATUS_BLOCK iosb, NTSTATU
     async_fileio_read *fileio = user;
     int fd, needs_close, result;
 
-    TRACE("%p %p 0x%x\n", iosb, fileio->buffer, status);
-
     switch (status)
     {
     case STATUS_ALERTED: /* got some new data */
@@ -340,10 +338,7 @@ static NTSTATUS FILE_AsyncReadService(void *user, PIO_STATUS_BLOCK iosb, NTSTATU
         if (result < 0)
         {
             if (errno == EAGAIN || errno == EINTR)
-            {
-                TRACE("Deferred read %d\n", errno);
                 status = STATUS_PENDING;
-            }
             else /* check to see if the transfer is complete */
                 status = FILE_GetNtStatus();
         }
@@ -364,10 +359,6 @@ static NTSTATUS FILE_AsyncReadService(void *user, PIO_STATUS_BLOCK iosb, NTSTATU
                  */
                 status = (fileio->avail_mode) ? STATUS_SUCCESS : STATUS_PENDING;
             }
-
-            TRACE("read %d more bytes %u/%u so far (%s)\n",
-                  result, fileio->already, fileio->count,
-                  (status == STATUS_SUCCESS) ? "success" : "pending");
         }
         break;
 
@@ -709,8 +700,6 @@ static NTSTATUS FILE_AsyncWriteService(void *user, IO_STATUS_BLOCK *iosb, NTSTAT
     int result, fd, needs_close;
     enum server_fd_type type;
 
-    TRACE("(%p %p 0x%x)\n",iosb, fileio->buffer, status);
-
     switch (status)
     {
     case STATUS_ALERTED:
@@ -735,7 +724,6 @@ static NTSTATUS FILE_AsyncWriteService(void *user, IO_STATUS_BLOCK *iosb, NTSTAT
         {
             fileio->already += result;
             status = (fileio->already < fileio->count) ? STATUS_PENDING : STATUS_SUCCESS;
-            TRACE("wrote %d more bytes %u/%u so far\n", result, fileio->already, fileio->count);
         }
         break;
 




More information about the wine-cvs mailing list