Traces: fs -> tid

Francois Gouget fgouget at free.fr
Tue Apr 10 02:21:14 CDT 2001


   I forgot: if not applying the previous patch then it would probably
be a good idea to apply the attached patch to dlls/ntdll/critsection.c
to output the tid instead of fs so that one can relate it to the other
tids.

   (if the previous patch is applied then this one is unnecessary since
ERR will output the tid for us if +tid is set)


--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                      Computers are like airconditioners
                They stop working properly if you open WINDOWS
-------------- next part --------------
Index: dlls/ntdll/critsection.c
===================================================================
RCS file: /home/cvs/wine/wine/dlls/ntdll/critsection.c,v
retrieving revision 1.4
diff -u -r1.4 critsection.c
--- dlls/ntdll/critsection.c	2001/01/22 02:18:13	1.4
+++ dlls/ntdll/critsection.c	2001/04/10 06:17:38
@@ -190,11 +190,11 @@
         DWORD res = WaitForSingleObject( sem, 5000L );
         if ( res == WAIT_TIMEOUT )
         {
-            ERR("Critical section %p wait timed out, retrying (60 sec) fs=%04x\n", crit, __get_fs() );
+            ERR("Critical section %p wait timed out, retrying (60 sec) tid=%08lx\n", crit, GetCurrentThreadId() );
             res = WaitForSingleObject( sem, 60000L );
             if ( res == WAIT_TIMEOUT && TRACE_ON(relay) )
             {
-                ERR("Critical section %p wait timed out, retrying (5 min) fs=%04x\n", crit, __get_fs() );
+                ERR("Critical section %p wait timed out, retrying (5 min) tid=%08lx\n", crit, GetCurrentThreadId() );
                 res = WaitForSingleObject( sem, 300000L );
             }
         }


More information about the wine-devel mailing list