Alexandre Julliard : krnl386.exe: Avoid using DPRINTF().

Alexandre Julliard julliard at winehq.org
Mon Apr 8 15:12:00 CDT 2019


Module: wine
Branch: master
Commit: d708d9e611c4240b3521ebddf24100399761cf41
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d708d9e611c4240b3521ebddf24100399761cf41

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr  8 19:33:48 2019 +0200

krnl386.exe: Avoid using DPRINTF().

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/krnl386.exe16/global.c | 14 --------------
 dlls/krnl386.exe16/thunk.c  | 14 +++++---------
 2 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/dlls/krnl386.exe16/global.c b/dlls/krnl386.exe16/global.c
index 8f9ac02..c7ccd2d 100644
--- a/dlls/krnl386.exe16/global.c
+++ b/dlls/krnl386.exe16/global.c
@@ -109,20 +109,6 @@ static GLOBALARENA *GLOBAL_GetArena( WORD sel, WORD selcount )
     return pGlobalArena + (sel >> __AHSHIFT);
 }
 
-void debug_handles(void)
-{
-    int printed=0;
-    int i;
-    for (i = globalArenaSize-1 ; i>=0 ; i--) {
-	if (pGlobalArena[i].size!=0 && (pGlobalArena[i].handle & 0x8000)){
-	    printed=1;
-	    DPRINTF("0x%08x, ",pGlobalArena[i].handle);
-	}
-    }
-    if (printed)
-	DPRINTF("\n");
-}
-
 
 /***********************************************************************
  *           GLOBAL_CreateBlock
diff --git a/dlls/krnl386.exe16/thunk.c b/dlls/krnl386.exe16/thunk.c
index 737f6a8..f3ca174 100644
--- a/dlls/krnl386.exe16/thunk.c
+++ b/dlls/krnl386.exe16/thunk.c
@@ -1011,13 +1011,9 @@ DWORD WINAPIV SSCall(
     DWORD i,ret;
     DWORD *args = ((DWORD *)&fun) + 1;
 
-    if(TRACE_ON(thunk))
-    {
-      DPRINTF("(%d,0x%08x,%p,[",nr,flags,fun);
-      for (i=0;i<nr/4;i++)
-          DPRINTF("0x%08x,",args[i]);
-      DPRINTF("])\n");
-    }
+    TRACE("(%d,0x%08x,%p,[",nr,flags,fun);
+    for (i = 0; i < nr/4; i++) TRACE("0x%08x,",args[i]);
+    TRACE("])\n");
     ret = call_entry_point( fun, nr / sizeof(DWORD), args );
     TRACE(" returning %d ...\n",ret);
     return ret;
@@ -2525,10 +2521,10 @@ DWORD WINAPIV WOW16Call(WORD x, WORD y, WORD z, VA_LIST16 args)
 
         for (i=0;i<x/2;i++) {
                 WORD    a = VA_ARG16(args,WORD);
-                DPRINTF("%04x ",a);
+                FIXME("%04x ",a);
         }
         calladdr = VA_ARG16(args,DWORD);
         stack16_pop( 3*sizeof(WORD) + x + sizeof(DWORD) );
-        DPRINTF(") calling address was 0x%08x\n",calladdr);
+        FIXME(") calling address was 0x%08x\n",calladdr);
         return 0;
 }




More information about the wine-cvs mailing list